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)
MD5Result digest () const
 Digest ()
 Digest (std::string const &s)

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 runTheMatrix::data, md5_append(), and state_.

Referenced by Digest().

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

Member Data Documentation

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

Definition at line 65 of file Digest.h.

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