7 #include <utl/AugerException.h>
41 virtual std::string GetExceptionName()
const
42 {
return "Invalid processing stage exception"; }
49 void AddDataRange(
const unsigned char*
const begin,
const unsigned char*
const end);
52 {
AddDataRange((
const unsigned char*)begin, (
const unsigned char*)end); }
58 const char*
const p = s.c_str();
66 for (p = s; *
p; ++
p) { }
void Clear()
Set up internal state.
Class to compute MD5 checksum Based on the RSA C code, wrapped in an OO fashion.
void AddDataRange(const unsigned char *const begin, const unsigned char *const end)
Base class for all exceptions used in the auger offline code.
unsigned int BufferIndex() const
unsigned int fCountLow
Number of bits, mod 2^64 (lsb first)
static const unsigned int kDigestSize
Md5Sum(const std::string &data)
unsigned int fStateB
internal state (B), 4 of 16 bytes, 64 bit total
IteratorPair GetRawDigest()
void AddData(const char *const s)
std::pair< Iterator, Iterator > IteratorPair
unsigned int fStateA
internal state (A), 4 of 16 bytes, 64 bit total
void AddDataRange(const char *const begin, const char *const end)
unsigned char fBuffer[kBufferSize]
input buffer
std::string GetHexDigest()
void AddData(const std::string &s)
Process the data in a string.
const unsigned char * Iterator
unsigned int fStateC
internal state (C), 4 of 16 bytes, 64 bit total
unsigned char fDigest[kDigestSize]
buffer for final digest
unsigned int fStateD
internal state (D), 4 of 16 bytes, 64 bit total
static const unsigned int kBufferSize