#include <md4.h>
Public Member Functions |
| MD4 () |
virtual | ~MD4 () |
void | feed (const unsigned char *data, int bytes) |
void | feed (const std::string &data) |
void | finalize () |
const std::string | hex () |
const std::string | binary () |
void | reset () |
Static Public Member Functions |
static const std::string | md4 (const std::string &data) |
Detailed Description
An MD4 implementation.
This is an implementation of the Message Digest Algorithm as decribed in RFC 1320. The original code has been taken from an MD5 implementation by L. Peter Deutsch.
- Author
- Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
- Since
- 1.1
Definition at line 81 of file md4.h.
Constructor & Destructor Documentation
Constructs a new MD4 object.
Definition at line 114 of file md4.cpp.
Virtual Destructor.
Definition at line 120 of file md4.cpp.
Member Function Documentation
const std::string binary |
( |
| ) |
|
Use this function to retrieve the raw binary hash.
- Returns
- The raw binary hash.
Definition at line 370 of file md4.cpp.
void feed |
( |
const unsigned char * |
data, |
|
|
int |
bytes |
|
) |
| |
Use this function to feed the hash.
- Parameters
-
data | The data to hash. |
bytes | The size of data in bytes. |
Definition at line 299 of file md4.cpp.
void feed |
( |
const std::string & |
data | ) |
|
Use this function to feed the hash.
- Parameters
-
Definition at line 294 of file md4.cpp.
This function is used to finalize the hash operation. Use it after the last feed() and before calling hex().
Definition at line 337 of file md4.cpp.
const std::string hex |
( |
| ) |
|
Use this function to retrieve the hash value in hex.
- Returns
- The hash in hex notation.
Definition at line 357 of file md4.cpp.
const std::string md4 |
( |
const std::string & |
data | ) |
|
|
static |
Static function that returns a hash of the given data.
- Parameters
-
- Returns
- The data's hash in hex notation.
Definition at line 107 of file md4.cpp.
Use this function to reset the hash.
Definition at line 382 of file md4.cpp.
The documentation for this class was generated from the following files: