CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 md5_init(), and state_.

169  :
170  state_()
171  {
172  md5_init(&state_);
173  }
void md5_init(md5_state_t *pms)
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(), md5_init(), and state_.

175  :
176  state_()
177  {
178  md5_init(&state_);
179  this->append(s);
180  }
void md5_init(md5_state_t *pms)
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, md5_append(), and state_.

Referenced by diclist.diclist::add(), Digest(), BeautifulSoup.Tag::setString(), edm::ParameterSetEntry::toDigest(), edm::VParameterSetEntry::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  }
unsigned char md5_byte_t
Definition: md5.h:62
md5_state_t state_
Definition: Digest.h:66
void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes)
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, md5_append(), alignCSCRings::s, and state_.

Referenced by diclist.diclist::add(), and BeautifulSoup.Tag::setString().

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  }
unsigned char md5_byte_t
Definition: md5.h:62
md5_state_t state_
Definition: Digest.h:66
void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
tuple size
Write out results.
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().