Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csMD5 Class Reference

This is am encapsulation of a C-implementation of MD5 digest algorithm by Peter Deutsch <ghost@aladdin.com>. More...

#include <csmd5.h>

List of all members.

Public Types

typedef unsigned char md5_byte_t
 8-bit byte.

typedef unsigned int md5_word_t
 32-bit word.


Static Public Methods

void md5_init (md5_state_t *)
 Initialize the algorithm.

void md5_append (md5_state_t *, const md5_byte_t *data, int nbytes)
 Append a string to the message.

void md5_finish (md5_state_t *, md5_byte_t digest[16])
 Finish the message and return the digest.

Digest Encode (const char *)
 Encode a null-terminated string buffer.

Digest Encode (const void *, int nbytes)
 Encode a buffer.


Static Protected Methods

void md5_process (md5_state_t *, const md5_byte_t *data)


Detailed Description

This is am encapsulation of a C-implementation of MD5 digest algorithm by Peter Deutsch <ghost@aladdin.com>.

It provides the exact raw interface as Peter's original code except that it is wrapped within a namespace, as well as a more convenient interface which allows one to create a digest in a single step.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000