Rudiments
|
Inherits hash.
Public Member Functions | |
md5 () | |
virtual | ~md5 () |
bool | append (const unsigned char *data, uint32_t size) |
const unsigned char * | getHash () |
uint64_t | getHashSize () |
bool | clear () |
hasherror_t | getError () |
![]() | |
hash () | |
virtual | ~hash () |
md5::md5 | ( | ) |
Creates an instance of the md5 class.
|
virtual |
Deletes this instance of the md5 class.
|
virtual |
Appends "size" bytes of "data" to the data to be hashed. Returns true on success or false if an error occurred.
Implements hash.
|
virtual |
Clears the current hash and any data that had previously been appended. Returns true on success or false if an error occurred.
Implements hash.
|
virtual |
Returns the most recent error.
Implements hash.
|
virtual |
Returns the current hash on success or NULL if an error occurred. Note that the current hash will be an empty string if no data has been appended yet.
Implements hash.
|
virtual |
Returns the number of bytes in the hash.
Implements hash.