#include <md5.h>
Collaboration diagram for MD5:
Definition at line 65 of file md5.h.
Public Member Functions | |
MD5 () | |
void | update (unsigned char *input, unsigned int input_length) |
void | update (std::istream &stream) |
void | update (FILE *file) |
void | update (std::ifstream &stream) |
void | finalize () |
MD5 (unsigned char *string) | |
MD5 (std::istream &stream) | |
MD5 (FILE *file) | |
MD5 (std::ifstream &stream) | |
unsigned char * | raw_digest () |
QString | hex_digest () |
Private Types | |
typedef unsigned int | uint4 |
typedef unsigned short int | uint2 |
typedef unsigned char | uint1 |
Private Member Functions | |
void | init () |
void | transform (uint1 *buffer) |
Static Private Member Functions | |
void | encode (uint1 *dest, uint4 *src, uint4 length) |
void | decode (uint4 *dest, uint1 *src, uint4 length) |
void | memcpy (uint1 *dest, uint1 *src, uint4 length) |
void | memset (uint1 *start, uint1 val, uint4 length) |
uint4 | rotate_left (uint4 x, uint4 n) |
uint4 | F (uint4 x, uint4 y, uint4 z) |
uint4 | G (uint4 x, uint4 y, uint4 z) |
uint4 | H (uint4 x, uint4 y, uint4 z) |
uint4 | I (uint4 x, uint4 y, uint4 z) |
void | FF (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
void | GG (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
void | HH (uint4 &a, uint4 b, uint4 c, uint4 d, uint4 x, uint4 s, uint4 ac) |
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 |
|
Definition at line 93 of file md5.h. Referenced by encode(), finalize(), and raw_digest(). |
|
|
|
Definition at line 91 of file md5.h. Referenced by decode(), and finalize(). |
|
Definition at line 62 of file md5.cpp. References init().
|
|
|
|
Definition at line 237 of file md5.cpp. References finalize(), init(), and update().
|
|
Definition at line 227 of file md5.cpp. References finalize(), init(), and update().
|
|
Definition at line 246 of file md5.cpp. References finalize(), init(), and update().
|
|
Definition at line 449 of file md5.cpp. References decode(), and uint4. Referenced by decode().
|
|
Definition at line 432 of file md5.cpp. References encode(), and uint1. Referenced by encode(), and finalize().
|
|
Definition at line 495 of file md5.cpp. References F().
|
|
Definition at line 517 of file md5.cpp. References b, F(), FF(), and rotate_left(). Referenced by FF().
|
|
Definition at line 188 of file md5.cpp. References buffer, count, digest, encode(), finalized, memset(), state, uint1, uint4, and update(). Referenced by MD5().
|
|
Definition at line 499 of file md5.cpp. References G().
|
|
Definition at line 523 of file md5.cpp. References b, G(), GG(), and rotate_left(). Referenced by GG().
|
|
Definition at line 503 of file md5.cpp. References H().
|
|
Definition at line 271 of file md5.cpp. References digest, and finalized. Referenced by filesMatch(), and getMD5().
|
|
Definition at line 529 of file md5.cpp. References b, H(), HH(), and rotate_left(). Referenced by HH().
|
|
Definition at line 507 of file md5.cpp. References I().
|
|
Definition at line 535 of file md5.cpp. References b, I(), II(), and rotate_left(). Referenced by II().
|
|
Definition at line 297 of file md5.cpp. References count, finalized, and state. Referenced by MD5().
|
|
Definition at line 463 of file md5.cpp. References memcpy(). Referenced by memcpy(), and raw_digest().
|
|
Definition at line 474 of file md5.cpp. References memset(). Referenced by finalize(), and memset().
|
|
Definition at line 255 of file md5.cpp. References digest, finalized, memcpy(), and uint1.
|
|
Definition at line 486 of file md5.cpp. References rotate_left(). Referenced by FF(), GG(), HH(), II(), and rotate_left().
|
|
|
|
Definition at line 166 of file md5.cpp. References buffer, buffer, and update().
|
|
Definition at line 119 of file md5.cpp. References buffer, buffer, and update().
|
|
Definition at line 145 of file md5.cpp. References buffer, buffer, and update().
|
|
Referenced by finalize(), MD5(), and update(). |
|
Definition at line 98 of file md5.h. Referenced by finalize(), and update(). |
|
Definition at line 97 of file md5.h. Referenced by finalize(), and init(). |
|
Definition at line 99 of file md5.h. Referenced by finalize(), hex_digest(), and raw_digest(). |
|
Definition at line 100 of file md5.h. Referenced by finalize(), hex_digest(), init(), and raw_digest(). |
|
Definition at line 96 of file md5.h. Referenced by finalize(), and init(). |