Logo Search packages:      
Sourcecode: gabber2 version File versions  Download package

MD5 Class Reference

#include <md5.h>

List of all members.


Detailed Description

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.

Definition at line 71 of file md5.h.


Public Member Functions

void finalize ()
std::string hex_digest ()
 MD5 (std::ifstream &stream)
 MD5 (FILE *file)
 MD5 (std::istream &stream)
 MD5 (unsigned char *string)
unsigned char * raw_digest ()
void update (std::ifstream &stream)
void update (FILE *file)
void update (std::istream &stream)
void update (unsigned char *input, unsigned int input_length)

Private Types

typedef unsigned char uint1
typedef unsigned short int uint2
typedef unsigned int uint4

Private Member Functions

void init ()
void transform (uint1 *buffer)

Static Private Member Functions

static void decode (uint4 *dest, uint1 *src, uint4 length)
static void encode (uint1 *dest, uint4 *src, uint4 length)
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 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)

Private Attributes

uint1 buffer [64]
uint4 count [2]
uint1 digest [16]
uint1 finalized
uint4 state [4]

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index