Class to compute MD5 checksum Based on the RSA C code, wrapped in an OO fashion. More...
#include "utl/Md5Sum.h"
Classes | |
| class | WrongStageException |
Public Types | |
| typedef const unsigned char * | Iterator |
| typedef std::pair< Iterator, Iterator > | IteratorPair |
Public Member Functions | |
| void | AddData (const std::string &s) |
| Process the data in a string. More... | |
| void | AddData (const char *const s) |
| void | AddDataRange (const unsigned char *const begin, const unsigned char *const end) |
| void | AddDataRange (const char *const begin, const char *const end) |
| void | Clear () |
| Set up internal state. More... | |
| std::string | GetHexDigest () |
| IteratorPair | GetRawDigest () |
| bool | IsFinalized () const |
| Md5Sum () | |
| Md5Sum (const std::string &data) | |
Static Public Attributes | |
| static const unsigned int | kBufferSize = 64 |
| static const unsigned int | kDigestSize = 16 |
Private Member Functions | |
| unsigned int | BufferIndex () const |
| void | ProcessBuffer () |
Private Attributes | |
| unsigned char | fBuffer [kBufferSize] |
| input buffer More... | |
| unsigned int | fCountHigh |
| unsigned int | fCountLow |
| Number of bits, mod 2^64 (lsb first) More... | |
| unsigned char | fDigest [kDigestSize] |
| buffer for final digest More... | |
| bool | fFinalized |
| unsigned int | fStateA |
| internal state (A), 4 of 16 bytes, 64 bit total More... | |
| unsigned int | fStateB |
| internal state (B), 4 of 16 bytes, 64 bit total More... | |
| unsigned int | fStateC |
| internal state (C), 4 of 16 bytes, 64 bit total More... | |
| unsigned int | fStateD |
| internal state (D), 4 of 16 bytes, 64 bit total More... | |
Class to compute MD5 checksum Based on the RSA C code, wrapped in an OO fashion.
| typedef const unsigned char* utl::Md5Sum::Iterator |
| typedef std::pair<Iterator, Iterator> utl::Md5Sum::IteratorPair |
|
inline |
|
inline |
Process the data in a string.
Definition at line 56 of file Md5Sum.h.
References AddDataRange(), and G4StationSimulatorOG::p.
Referenced by Md5Sum(), and testMd5Sum::testUseFinalized().
|
inline |
Definition at line 63 of file Md5Sum.h.
References AddDataRange(), and G4StationSimulatorOG::p.
| void utl::Md5Sum::AddDataRange | ( | const unsigned char *const | begin, |
| const unsigned char *const | end | ||
| ) |
Definition at line 180 of file Md5Sum.cc.
References G4StationSimulatorOG::p.
Referenced by AddData(), and AddDataRange().
|
inline |
Definition at line 51 of file Md5Sum.h.
References AddDataRange().
|
inlineprivate |
Definition at line 83 of file Md5Sum.h.
References fCountLow, and kBufferSize.
| void utl::Md5Sum::Clear | ( | ) |
| string utl::Md5Sum::GetHexDigest | ( | ) |
Definition at line 340 of file Md5Sum.cc.
Referenced by fevt::TelescopeSimData::GetConfigSignature(), and testMd5Sum::MD5().
| Md5Sum::IteratorPair utl::Md5Sum::GetRawDigest | ( | ) |
Definition at line 309 of file Md5Sum.cc.
Referenced by testMd5Sum::testUseFinalized().
|
inline |
Definition at line 74 of file Md5Sum.h.
References fFinalized.
|
private |
Definition at line 211 of file Md5Sum.cc.
References RdGeoCeLDFFitter::a, RdGeoCeLDFFitter::b, and RdGeoCeLDFFitter::c.
|
private |
|
private |
Number of bits, mod 2^64 (lsb first)
Definition at line 97 of file Md5Sum.h.
Referenced by BufferIndex().
|
private |
|
private |
Definition at line 86 of file Md5Sum.h.
Referenced by IsFinalized().
|
private |
|
private |
|
private |
|
private |
|
static |
Definition at line 31 of file Md5Sum.h.
Referenced by BufferIndex().