#include <csmd5.h>
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) |
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.