MD5 hash function class.
More...
#include <md5.h>
virtual void uicore::MD5::add |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
|
pure virtual |
virtual void uicore::MD5::calculate |
( |
| ) |
|
|
pure virtual |
Finalize hash calculation.
static std::shared_ptr<MD5> uicore::MD5::create |
( |
| ) |
|
|
static |
Constructs a MD5 hash generator.
virtual std::string uicore::MD5::hash |
( |
bool |
uppercase = false | ) |
const |
|
pure virtual |
Returns the calculated hash.
virtual void uicore::MD5::hash |
( |
unsigned char |
out_hash[hash_size] | ) |
const |
|
pure virtual |
Get hash.
- Parameters
-
out_hash | = where to write to |
virtual void uicore::MD5::reset |
( |
| ) |
|
|
pure virtual |
Resets the hash generator.
virtual void uicore::MD5::set_hmac |
( |
const void * |
key_data, |
|
|
int |
key_size |
|
) |
| |
|
pure virtual |
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 uicore::MD5::hash_size = 16 |
|
static |
The documentation for this class was generated from the following file: