CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 ()
 

Private Attributes

md5_state_t state_
 

Detailed Description

Definition at line 46 of file Digest.h.

Constructor & Destructor Documentation

cms::Digest::Digest ( )

Definition at line 154 of file Digest.cc.

References state_.

154 : state_() { md5_init(&state_); }
md5_state_t state_
Definition: Digest.h:57
cms::Digest::Digest ( std::string const &  s)
explicit

Definition at line 156 of file Digest.cc.

References append(), and state_.

156  : state_() {
157  md5_init(&state_);
158  this->append(s);
159  }
md5_state_t state_
Definition: Digest.h:57
void append(std::string const &s)
Definition: Digest.cc:161

Member Function Documentation

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

Definition at line 161 of file Digest.cc.

References data, 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_().

161  {
162  const md5_byte_t* data = reinterpret_cast<const md5_byte_t*>(s.data());
163  md5_append(&state_, const_cast<md5_byte_t*>(data), s.size());
164  }
md5_state_t state_
Definition: Digest.h:57
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void cms::Digest::append ( const char *  data,
size_t  size 
)

Definition at line 166 of file Digest.cc.

References data, alignCSCRings::s, and state_.

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

166  {
167  const md5_byte_t* data = reinterpret_cast<const md5_byte_t*>(s);
168  md5_append(&state_, const_cast<md5_byte_t*>(data), size);
169  }
md5_state_t state_
Definition: Digest.h:57
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
tuple size
Write out results.
MD5Result cms::Digest::digest ( )

Member Data Documentation

md5_state_t cms::Digest::state_
private

Definition at line 57 of file Digest.h.

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