CMS 3D CMS Logo

Public Member Functions | Private Attributes

cms::Digest Class Reference

#include <Digest.h>

List of all members.

Public Member Functions

void append (std::string const &s)
void append (const char *data, size_t size)
 Digest (std::string const &s)
 Digest ()
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_.

                 :
    state_()
  {
    md5_init(&state_);
  }
cms::Digest::Digest ( std::string const &  s) [explicit]

Definition at line 175 of file Digest.cc.

References append(), md5_init(), and state_.

                                   :
    state_()
  {
    md5_init(&state_);
    this->append(s);
  }

Member Function Documentation

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

Definition at line 182 of file Digest.cc.

References AlCaHLTBitMon_QueryRunRegistry::data, md5_append(), and state_.

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

  {
    const md5_byte_t* data = reinterpret_cast<const md5_byte_t*>(s.data());
    md5_append(&state_, const_cast<md5_byte_t*>(data), s.size());
  }
void cms::Digest::append ( const char *  data,
size_t  size 
)

Definition at line 188 of file Digest.cc.

References AlCaHLTBitMon_QueryRunRegistry::data, md5_append(), asciidump::s, and state_.

  {
    const md5_byte_t* data = reinterpret_cast<const md5_byte_t*>(s);
    md5_append(&state_, const_cast<md5_byte_t*>(data), size);
  }
MD5Result cms::Digest::digest ( ) const

Member Data Documentation

md5_state_t cms::Digest::state_ [mutable, private]

Definition at line 66 of file Digest.h.

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