MD-5 processor without external dependencies.
More...
#include <md5.hpp>
|
| MD5 () |
| construct empty object. More...
|
|
| MD5 (const void *data, uint32_t size) |
| construct context and process data range More...
|
|
| MD5 (const std::string &str) |
| construct context and process string More...
|
|
void | process (const void *data, uint32_t size) |
| process more data More...
|
|
void | process (const std::string &str) |
| process more data More...
|
|
void | finalize (void *digest) |
| finalize computation and output 16 byte (128 bit) digest More...
|
|
std::string | digest () |
| finalize computation and return 16 byte (128 bit) digest More...
|
|
std::string | digest_hex () |
| finalize computation and return 16 byte (128 bit) digest hex encoded More...
|
|
std::string | digest_hex_uc () |
| finalize computation and return 16 byte (128 bit) digest upper-case hex More...
|
|
MD-5 processor without external dependencies.
Definition at line 39 of file md5.hpp.
◆ MD5() [1/3]
construct empty object.
Definition at line 177 of file md5.cpp.
◆ MD5() [2/3]
MD5 |
( |
const void * |
data, |
|
|
uint32_t |
size |
|
) |
| |
construct context and process data range
Definition at line 186 of file md5.cpp.
◆ MD5() [3/3]
MD5 |
( |
const std::string & |
str | ) |
|
|
explicit |
construct context and process string
Definition at line 190 of file md5.cpp.
◆ digest()
finalize computation and return 16 byte (128 bit) digest
Definition at line 264 of file md5.cpp.
◆ digest_hex()
std::string digest_hex |
( |
| ) |
|
finalize computation and return 16 byte (128 bit) digest hex encoded
Definition at line 270 of file md5.cpp.
◆ digest_hex_uc()
std::string digest_hex_uc |
( |
| ) |
|
finalize computation and return 16 byte (128 bit) digest upper-case hex
Definition at line 276 of file md5.cpp.
◆ finalize()
void finalize |
( |
void * |
digest | ) |
|
finalize computation and output 16 byte (128 bit) digest
Definition at line 232 of file md5.cpp.
◆ process() [1/2]
void process |
( |
const std::string & |
str | ) |
|
process more data
Definition at line 228 of file md5.cpp.
◆ process() [2/2]
void process |
( |
const void * |
data, |
|
|
uint32_t |
size |
|
) |
| |
process more data
Definition at line 194 of file md5.cpp.
◆ buf_
◆ curlen_
◆ kDigestLength
constexpr size_t kDigestLength |
|
staticconstexpr |
digest length in bytes
Definition at line 55 of file md5.hpp.
◆ length_
◆ state_
The documentation for this class was generated from the following files: