CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csMD5 Class Reference

This is an 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, size_t 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 (csString const &)
 Encode a string.

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

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


Detailed Description

This is an 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.

Definition at line 76 of file csmd5.h.


Member Typedef Documentation

typedef unsigned char csMD5::md5_byte_t
 

8-bit byte

Definition at line 80 of file csmd5.h.

typedef unsigned int csMD5::md5_word_t
 

32-bit word

Definition at line 82 of file csmd5.h.


Member Function Documentation

Digest csMD5::Encode const void *   ,
size_t    nbytes
[static]
 

Encode a buffer.

Digest csMD5::Encode const char *    [static]
 

Encode a null-terminated string buffer.

Digest csMD5::Encode csString const &    [static]
 

Encode a string.

void csMD5::md5_append md5_state_t *   ,
const md5_byte_t   data,
size_t    nbytes
[static]
 

Append a string to the message.

void csMD5::md5_finish md5_state_t *   ,
md5_byte_t    digest[16]
[static]
 

Finish the message and return the digest.

void csMD5::md5_init md5_state_t *    [static]
 

Initialize the algorithm.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18