![]() |
Public API Reference |
#include <csmd5.h>
Public Types | |
| typedef unsigned char | md5_byte_t |
| 8-bit byte. More... | |
| typedef unsigned int | md5_word_t |
| 32-bit word. More... | |
Static Public Methods | |
| void | md5_init (md5_state_t *) |
| Initialize the algorithm. More... | |
| void | md5_append (md5_state_t *, const md5_byte_t *data, int nbytes) |
| Append a string to the message. More... | |
| void | md5_finish (md5_state_t *, md5_byte_t digest[16]) |
| Finish the message and return the digest. More... | |
| Digest | Encode (const char *) |
| Encode a null-terminated string buffer. More... | |
| Digest | Encode (const void *, int nbytes) |
| Encode a buffer. More... | |
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 74 of file csmd5.h.
|
|
8-bit byte.
|
|
|
32-bit word.
|
|
||||||||||||
|
Encode a buffer.
|
|
|
Encode a null-terminated string buffer.
|
|
||||||||||||||||
|
Append a string to the message.
|
|
||||||||||||
|
Finish the message and return the digest.
|
|
|
Initialize the algorithm.
|