Yate
|
A standard MD5 digest calculator. More...
#include <yateclass.h>
Public Member Functions | |
MD5 () | |
MD5 (const MD5 &original) | |
MD5 (const void *buf, unsigned int len) | |
MD5 (const DataBlock &data) | |
MD5 (const String &str) | |
~MD5 () | |
MD5 & | operator= (const MD5 &original) |
void | clear () |
void | finalize () |
bool | update (const void *buf, unsigned int len) |
bool | update (const DataBlock &data) |
bool | update (const String &str) |
MD5 & | operator<< (const String &value) |
MD5 & | operator<< (const DataBlock &data) |
MD5 & | operator<< (const char *value) |
const unsigned char * | rawDigest () |
const String & | hexDigest () |
Static Public Member Functions | |
static unsigned int | rawLength () |
MD5 | ( | ) |
Construct a fresh initialized instance
MD5 | ( | const void * | buf, |
unsigned int | len | ||
) |
Construct a digest from a buffer of data
buf | Pointer to the data to be included in digest |
len | Length of data in the buffer |
Construct a digest from a binary DataBlock
data | Binary data to be included in digest |
~MD5 | ( | ) |
Destroy the instance, free allocated memory
void clear | ( | ) |
Clear the digest and prepare for reuse
void finalize | ( | ) |
Finalize the digest computation, make result ready. Subsequent calls to update() will fail
Returns the standard hexadecimal representation of the message digest. The digest is finalized if if wasn't already
Referenced by ClientContact::buildIdHash().
const unsigned char* rawDigest | ( | ) |
Returns a pointer to the raw 16-byte binary value of the message digest. The digest is finalized if if wasn't already
static unsigned int rawLength | ( | ) | [inline, static] |
Return the length of the raw binary digest
bool update | ( | const void * | buf, |
unsigned int | len | ||
) |
Update the digest from a buffer of data
buf | Pointer to the data to be included in digest |
len | Length of data in the buffer |
Update the digest from the content of a DataBlock
data | Data to be included in digest |
References DataBlock::data(), DataBlock::length(), and MD5::update().
Referenced by MD5::update().
Update the digest from the content of a String
str | String to be included in digest |
References String::c_str(), String::length(), and MD5::update().
Referenced by MD5::update().