#include <MD5.h>
Public Types | |
| typedef unsigned int | size_type |
Public Member Functions | |
| MD5 & | finalize () |
| const unsigned char * | getDigest () const |
| std::string | hexdigest () const |
| MD5 () | |
| MD5 (const std::string &text) | |
| void | update (const char *buf, size_type length) |
| void | update (const unsigned char *buf, size_type length) |
Private Types | |
| enum | { blocksize = 64 } |
| typedef unsigned char | uint1 |
| typedef unsigned int | uint4 |
Private Member Functions | |
| void | init () |
| void | transform (const uint1 block[blocksize]) |
Static Private Member Functions | |
| static void | decode (uint4 output[], const uint1 input[], size_type len) |
| static void | encode (uint1 output[], const uint4 input[], size_type len) |
| static uint4 | F (uint4 x, uint4 y, uint4 z) |
| static void | FF (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
| static uint4 | G (uint4 x, uint4 y, uint4 z) |
| static void | GG (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
| static uint4 | H (uint4 x, uint4 y, uint4 z) |
| static void | HH (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
| static uint4 | I (uint4 x, uint4 y, uint4 z) |
| static void | II (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
| static uint4 | rotate_left (uint4 x, int n) |
Private Attributes | |
| uint1 | buffer [blocksize] |
| uint4 | count [2] |
| uint1 | digest [16] |
| bool | finalized |
| uint4 | state [4] |
Friends | |
| std::ostream & | operator<< (std::ostream &, const MD5 &md5) |
| typedef unsigned int visionary::MD5::size_type |
|
private |
|
private |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
private |
| void visionary::MD5::update | ( | const char * | buf, |
| size_type | length | ||
| ) |
| void visionary::MD5::update | ( | const unsigned char * | buf, |
| size_type | length | ||
| ) |
|
friend |