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>
Public Types | |
typedef uint8 | md5_byte_t |
8-bit byte | |
typedef uint32 | md5_word_t |
32-bit word | |
Static Public Member Functions | |
static Digest | Encode (const void *, size_t nbytes) |
Encode a buffer. | |
static Digest | Encode (const char *) |
Encode a null-terminated string buffer. | |
static Digest | Encode (csString const &) |
Encode a string. | |
static void | md5_append (md5_state_t *, const md5_byte_t *data, size_t nbytes) |
Append a string to the message. | |
static void | md5_finish (md5_state_t *, md5_byte_t digest[16]) |
Finish the message and return the digest. | |
static void | md5_init (md5_state_t *) |
Initialize the algorithm. | |
Classes | |
struct | Digest |
An MD5 digest is 16 unsigned characters (not 0-terminated). More... | |
struct | md5_state_t |
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
|
8-bit byte
|
|
32-bit word
|
Member Function Documentation
|
Encode a buffer.
|
|
Encode a null-terminated string buffer.
|
|
Encode a string.
|
|
Append a string to the message.
|
|
Finish the message and return the digest.
|
|
Initialize the algorithm.
|
The documentation for this class was generated from the following file:
- csutil/csmd5.h
Generated for Crystal Space by doxygen 1.4.6