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 ()
 

Private Attributes

md5_state_t state_
 

Detailed Description

Definition at line 46 of file Digest.h.

Constructor & Destructor Documentation

◆ Digest() [1/2]

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

◆ Digest() [2/2]

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

◆ append() [1/2]

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

Definition at line 161 of file Digest.cc.

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

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

◆ append() [2/2]

void cms::Digest::append ( const char *  data,
size_t  size 
)

Definition at line 166 of file Digest.cc.

References data, alignCSCRings::s, findQualityFiles::size, and state_.

Referenced by diclist.diclist::add().

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  }
size
Write out results.
md5_state_t state_
Definition: Digest.h:57
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ digest()

MD5Result cms::Digest::digest ( )

Member Data Documentation

◆ state_

md5_state_t cms::Digest::state_
private

Definition at line 57 of file Digest.h.

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