CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cms::Digest Class Reference

#include <Digest.h>

Public Member Functions

void append (std::string const &s)
 
void append (const char *data, size_t size)
 
 Digest ()
 
 Digest (std::string const &s)
 
MD5Result digest () const
 

Private Attributes

md5_state_t state_
 

Detailed Description

Definition at line 54 of file Digest.h.

Constructor & Destructor Documentation

cms::Digest::Digest ( )

Definition at line 169 of file Digest.cc.

References state_.

169  :
170  state_()
171  {
172  md5_init(&state_);
173  }
md5_state_t state_
Definition: Digest.h:66
cms::Digest::Digest ( std::string const &  s)
explicit

Definition at line 175 of file Digest.cc.

References append(), and state_.

175  :
176  state_()
177  {
178  md5_init(&state_);
179  this->append(s);
180  }
md5_state_t state_
Definition: Digest.h:66
void append(std::string const &s)
Definition: Digest.cc:182

Member Function Documentation

void cms::Digest::append ( std::string const &  s)

Definition at line 182 of file Digest.cc.

References data, and state_.

Referenced by diclist.diclist::add(), Digest(), edm::VParameterSetEntry::toDigest(), edm::ParameterSetEntry::toDigest(), edm::ParameterSet::toDigest(), edm::Entry::toDigest(), and edm::hash_detail::toDigest_().

183  {
184  const md5_byte_t* data = reinterpret_cast<const md5_byte_t*>(s.data());
185  md5_append(&state_, const_cast<md5_byte_t*>(data), s.size());
186  }
md5_state_t state_
Definition: Digest.h:66
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void cms::Digest::append ( const char *  data,
size_t  size 
)

Definition at line 188 of file Digest.cc.

References data, alignCSCRings::s, and state_.

Referenced by diclist.diclist::add().

189  {
190  const md5_byte_t* data = reinterpret_cast<const md5_byte_t*>(s);
191  md5_append(&state_, const_cast<md5_byte_t*>(data), size);
192  }
size
Write out results.
md5_state_t state_
Definition: Digest.h:66
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
MD5Result cms::Digest::digest ( ) const

Member Data Documentation

md5_state_t cms::Digest::state_
mutableprivate

Definition at line 66 of file Digest.h.

Referenced by append(), Digest(), and digest().