MRPT
1.9.9
|
Public Types | |
using | size_type = uint32_t |
Public Member Functions | |
MD5 ()=default | |
MD5 (const std::string &text) | |
void | update (const unsigned char *buf, size_type length) |
void | update (const char *buf, size_type length) |
MD5 & | finalize () |
std::string | hexdigest () const |
Private Types | |
enum | { blocksize = 64 } |
using | uint1 = unsigned char |
using | uint4 = unsigned int |
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 uint4 | G (uint4 x, uint4 y, uint4 z) |
static uint4 | H (uint4 x, uint4 y, uint4 z) |
static uint4 | I (uint4 x, uint4 y, uint4 z) |
static uint4 | rotate_left (uint4 x, int n) |
static void | FF (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
static void | GG (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
static void | HH (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
static void | II (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
Private Attributes | |
bool | finalized {false} |
uint1 | buffer [blocksize] |
uint4 | count [2] = {0, 0} |
uint4 | state [4] = {0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476} |
uint1 | digest [16] {} |
Friends | |
std::ostream & | operator<< (std::ostream &, MD5 md5) |
using MD5::size_type = uint32_t |
|
private |
|
private |
|
default |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
std::string MD5::hexdigest | ( | ) | const |
Definition at line 399 of file md5.cpp.
References mrpt::system::os::sprintf().
|
inlinestaticprivate |
|
inlinestaticprivate |
|
private |
void MD5::update | ( | const unsigned char * | buf, |
size_type | length | ||
) |
void MD5::update | ( | const char * | buf, |
size_type | length | ||
) |
|
friend |
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |