AlbumShaper
1.0a3
|
MD5 Support allows checksums to be computed for images, determing if they have changed since the album was saved out, and if so need to be loaded and rescaled. More...
#include <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 | |
static void | encode (uint1 *dest, uint4 *src, uint4 length) |
static void | decode (uint4 *dest, uint1 *src, uint4 length) |
static void | memcpy (uint1 *dest, uint1 *src, uint4 length) |
static void | memset (uint1 *start, uint1 val, 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 |
MD5 Support allows checksums to be computed for images, determing if they have changed since the album was saved out, and if so need to be loaded and rescaled.
|
private |
|
private |
|
private |
MD5::MD5 | ( | ) |
MD5::MD5 | ( | unsigned char * | string | ) |
MD5::MD5 | ( | std::istream & | stream | ) |
MD5::MD5 | ( | FILE * | file | ) |
MD5::MD5 | ( | std::ifstream & | stream | ) |
Definition at line 449 of file md5.cpp.
Referenced by transform().
|
inlinestaticprivate |
Definition at line 517 of file md5.cpp.
References b, F(), and rotate_left().
Referenced by transform().
void MD5::finalize | ( | ) |
|
inlinestaticprivate |
Definition at line 523 of file md5.cpp.
References b, G(), and rotate_left().
Referenced by transform().
QString MD5::hex_digest | ( | ) |
|
inlinestaticprivate |
Definition at line 529 of file md5.cpp.
References b, H(), and rotate_left().
Referenced by transform().
|
inlinestaticprivate |
Definition at line 535 of file md5.cpp.
References b, I(), and rotate_left().
Referenced by transform().
|
private |
Definition at line 463 of file md5.cpp.
Referenced by raw_digest(), and update().
Definition at line 474 of file md5.cpp.
Referenced by finalize(), and transform().
unsigned char * MD5::raw_digest | ( | ) |
|
private |
Definition at line 338 of file md5.cpp.
References b, decode(), FF(), finalized, GG(), HH(), II(), memset(), S11, S12, S13, S14, S21, S22, S23, S24, S31, S32, S33, S34, S41, S42, S43, S44, and state.
Referenced by update().
void MD5::update | ( | unsigned char * | input, |
unsigned int | input_length | ||
) |
Definition at line 71 of file md5.cpp.
References buffer, count, finalized, memcpy(), and transform().
Referenced by finalize(), MD5(), and update().
void MD5::update | ( | std::istream & | stream | ) |
void MD5::update | ( | FILE * | file | ) |
void MD5::update | ( | std::ifstream & | stream | ) |
|
private |
Definition at line 98 of file md5.h.
Referenced by finalize(), and update().
|
private |
Definition at line 97 of file md5.h.
Referenced by finalize(), init(), and update().
|
private |
Definition at line 99 of file md5.h.
Referenced by finalize(), hex_digest(), and raw_digest().
|
private |
Definition at line 100 of file md5.h.
Referenced by finalize(), hex_digest(), init(), raw_digest(), transform(), and update().
|
private |
Definition at line 96 of file md5.h.
Referenced by finalize(), init(), and transform().