MD5HASH Class Reference

#include <mi32/md5hash.h>

List of all members.

Public Member Functions

 MD5HASH ()
 ~MD5HASH ()
void Append (const UINT8 *buffer, INT32 BufferSize)
void Append (const MISTRING &string)
void Append (const STRUTF8 &buffer)
void Clear ()
MISTRING Finish ()
void Finish (unsigned char digest[16])

Static Public Member Functions

static MISTRING GenerateHash (const MISTRING &string)
static MISTRING GenerateHash (const STRUTF8 &buffer)

Constructor & Destructor Documentation

MD5HASH::MD5HASH (  ) 

Default constructor.

MD5HASH::~MD5HASH (  ) 

Destructor.


Member Function Documentation

void MD5HASH::Append ( const UINT8 buffer,
INT32  BufferSize 
)

Append 'buffer' to the string to be hashed.

Call Finish() to get the hash value

void MD5HASH::Append ( const MISTRING string  ) 

Append 'buffer' to the string to be hashed.

Converts to UTF8 first, then appends to the hash Call Finish() to get the hash value

void MD5HASH::Append ( const STRUTF8 buffer  ) 

Append 'buffer' to the string to be hashed.

Call Finish() to get the hash value

void MD5HASH::Clear (  ) 

Clear the hash.

MISTRING MD5HASH::Finish (  ) 

Finish the hash.

Generate and return the hex representaion of the hash value This will call Clear() to reset the hash code

Returns:
Hex representation of digest buffer
void MD5HASH::Finish ( unsigned char  digest[16]  ) 

Finish the hash.

Generate and return the hash value from the appended data This will call Clear() to reset the hash code

static MISTRING MD5HASH::GenerateHash ( const MISTRING string  )  [static]

Generate MD5 hash for STRUTF8 string passed in Converts 'string' to UTF8 before generating the hash.

Returns:
Hex representation of digest buffer
static MISTRING MD5HASH::GenerateHash ( const STRUTF8 buffer  )  [static]

Generate MD5 hash for STRUTF8 string passed in.

Returns:
Hex representation of digest buffer

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

Generated on Sun Oct 7 21:33:34 2012 for TNTsdk 2012 by  doxygen 1.6.1