Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

md5 Class Reference

#include <md5.h>

Collaboration diagram for md5:

Collaboration graph
List of all members.

Detailed Description

MD5 class.


Public Member Functions

 md5 (void)
 MD5 constructor. (Start MD5 accumulation.).

void MD5Update (char *pContent, size_t ContentSize)
 Update context to reflect the concatenation of another buffer full of bytes.

string MD5Final (void)
 Final wrapup - pad to 64-byte boundary with the bit pattern 1 0* (64-bit count of bits processed, MSB-first).


Private Member Functions

void MD5Transform (void)
 The core of the MD5 algorithm.


Private Attributes

unsigned int m_buf [4]
 MD5 buffer.

unsigned int m_bits [2]
 MD5 bits.

unsigned char m_in [64]
 MD5 input.


Constructor & Destructor Documentation

md5::md5 void   ) 
 

MD5 constructor. (Start MD5 accumulation.).


Member Function Documentation

void md5::MD5Update char *  pContent,
size_t  ContentSize
 

Update context to reflect the concatenation of another buffer full of bytes.

Here is the call graph for this function:

string md5::MD5Final void   ) 
 

Final wrapup - pad to 64-byte boundary with the bit pattern 1 0* (64-bit count of bits processed, MSB-first).

Returns:
MD5 converted to a hexadecimal string.

Here is the call graph for this function:

void md5::MD5Transform void   )  [private]
 

The core of the MD5 algorithm.

This alters an existing MD5 hash to reflect the addition of 16 longwords of new data. MD5Update blocks the data and converts bytes into longwords for this routine.


Member Data Documentation

unsigned int md5::m_buf[4] [private]
 

MD5 buffer.

unsigned int md5::m_bits[2] [private]
 

MD5 bits.

unsigned char md5::m_in[64] [private]
 

MD5 input.


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