Public Types |
typedef unsigned int | u32 |
typedef unsigned char | byte |
Public Member Functions |
| MD5Hasher () |
| ~MD5Hasher () |
byte * | hash (byte *buf, size_t nbytes) |
| FPM: At this point I diverge from GnuPG's implementation to write my own wrapper function.
|
Private Member Functions |
void | init () |
void | transform (byte *data) |
| transform n*64 bytes
|
void | write (byte *inbuf, size_t inlen) |
| The routine updates the message-digest context to account for the presence of each of the characters inBuf[0..inLen-1] in the message whose digest is being computed.
|
void | final () |
| The routine final terminates the message-digest computation and ends with the desired message digest in mdContext->digest[0...15].
|
byte * | read () |
Detailed Description
Definition at line 76 of file MD5.cpp.
Member Typedef Documentation
Constructor & Destructor Documentation
rsb::util::MD5Hasher::MD5Hasher |
( |
| ) |
|
|
inline |
rsb::util::MD5Hasher::~MD5Hasher |
( |
| ) |
|
|
inline |
Member Function Documentation
void rsb::util::MD5Hasher::final |
( |
| ) |
|
|
inlineprivate |
The routine final terminates the message-digest computation and ends with the desired message digest in mdContext->digest[0...15].
The handle is prepared for a new MD5 cycle. Returns 16 bytes representing the digest.
Definition at line 297 of file MD5.cpp.
References X.
byte* rsb::util::MD5Hasher::hash |
( |
byte * |
buf, |
|
|
size_t |
nbytes |
|
) |
| |
|
inline |
FPM: At this point I diverge from GnuPG's implementation to write my own wrapper function.
I'll use this to hash the passphrase.
Definition at line 93 of file MD5.cpp.
void rsb::util::MD5Hasher::init |
( |
| ) |
|
|
inlineprivate |
byte* rsb::util::MD5Hasher::read |
( |
| ) |
|
|
inlineprivate |
void rsb::util::MD5Hasher::transform |
( |
byte * |
data | ) |
|
|
inlineprivate |
transform n*64 bytes
Definition at line 124 of file MD5.cpp.
References FG, FH, FI, and OP.
void rsb::util::MD5Hasher::write |
( |
byte * |
inbuf, |
|
|
size_t |
inlen |
|
) |
| |
|
inlineprivate |
The routine updates the message-digest context to account for the presence of each of the characters inBuf[0..inLen-1] in the message whose digest is being computed.
Definition at line 255 of file MD5.cpp.
Member Data Documentation
u32 rsb::util::MD5Hasher::A |
|
private |
u32 rsb::util::MD5Hasher::B |
|
private |
byte rsb::util::MD5Hasher::buf[64] |
|
private |
u32 rsb::util::MD5Hasher::C |
|
private |
int rsb::util::MD5Hasher::count |
|
private |
u32 rsb::util::MD5Hasher::D |
|
private |
u32 rsb::util::MD5Hasher::nblocks |
|
private |
The documentation for this class was generated from the following file: