#include <md5.hpp>
Public Member Functions | |
MD5 () | |
void | update (const uint8_t *input, const uint32_t input_length) |
void | finalize () |
std::array< uint8_t, 16 > | raw_digest () |
Private Types | |
typedef uint32_t | uint4 |
typedef uint16_t | uint2 |
typedef uint8_t | uint1 |
Private Member Functions | |
void | init () |
void | transform (const uint1 buffer[64]) |
Static Private Member Functions | |
static void | encode (uint1 *dest, uint4 *src, uint4 length) |
static void | decode (uint4 *dest, const uint1 *src, uint4 length) |
static uint4 | rotate_left (uint4 x, uint4 n) |
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 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 | |
uint4 | state [4] |
uint4 | count [2] |
uint1 | buffer [64] |
uint1 | digest [16] |
uint1 | finalized |
|
private |
|
private |
|
private |
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 374 of file md5.cpp.
References F(), and rotate_left().
Referenced by transform().
void MD5::finalize | ( | ) |
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 380 of file md5.cpp.
References G(), and rotate_left().
Referenced by transform().
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 386 of file md5.cpp.
References H(), and rotate_left().
Referenced by transform().
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 392 of file md5.cpp.
References I(), and rotate_left().
Referenced by transform().
|
private |
std::array< uint8_t, 16 > MD5::raw_digest | ( | ) |
Definition at line 159 of file md5.cpp.
References digest, and finalized.
Referenced by util::md5().
|
inlinestaticprivate |
Definition at line 75 of file md5.cpp.
References buffer, finalized, and transform().
Referenced by finalize(), and util::md5().
|
private |
Definition at line 70 of file md5.hpp.
Referenced by finalize(), and update().
|
private |
Definition at line 71 of file md5.hpp.
Referenced by finalize(), and raw_digest().
|
private |
Definition at line 72 of file md5.hpp.
Referenced by finalize(), init(), raw_digest(), transform(), and update().
|
private |
Definition at line 68 of file md5.hpp.
Referenced by finalize(), init(), and transform().