MD5 hash function class.
More...
#include <md5.h>
Constructs a MD5 hash generator.
void CL_MD5::add |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
void CL_MD5::calculate |
( |
) | |
|
Finalize hash calculation.
CL_String8 CL_MD5::get_hash |
( |
bool |
uppercase = false ) | |
const |
Returns the calculated hash.
void CL_MD5::get_hash |
( |
unsigned char |
out_hash[hash_size]) | |
const |
Get hash.
- Parameters
-
out_hash | = where to write to |
Resets the hash generator.
void CL_MD5::set_hmac |
( |
const void * |
key_data, |
|
|
int |
key_size |
|
) |
| |
Enable a HMAC based calculation.
Call this function before the initial add(). It is reset by reset()
- Parameters
-
key_data | = The HMAC key |
key_size | = The size of the key_data |
const int CL_MD5::hash_size = 16 |
|
static |
The documentation for this class was generated from the following file: