CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 <csutil/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 Member Functions

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 77 of file csmd5.h.


Member Typedef Documentation

typedef unsigned char csMD5::md5_byte_t
 

8-bit byte

Definition at line 81 of file csmd5.h.

typedef unsigned int csMD5::md5_word_t
 

32-bit word

Definition at line 83 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.3.9.1