14#ifndef TLX_DIGEST_MD5_HEADER
15#define TLX_DIGEST_MD5_HEADER
34 MD5(
const void* data, std::uint32_t size);
36 explicit MD5(
const std::string& str);
39 void process(
const void* data, std::uint32_t size);
41 void process(
const std::string& str);
64std::string
md5_hex(
const void* data, std::uint32_t size);
66std::string
md5_hex(
const std::string& str);
69std::string
md5_hex_uc(
const void* data, std::uint32_t size);
void finalize(void *digest)
finalize computation and output 16 byte (128 bit) digest
std::string digest_hex()
finalize computation and return 16 byte (128 bit) digest hex encoded
std::string digest()
finalize computation and return 16 byte (128 bit) digest
std::string digest_hex_uc()
finalize computation and return 16 byte (128 bit) digest upper-case hex
MD5()
construct empty object.
static constexpr size_t kDigestLength
digest length in bytes
void process(const void *data, std::uint32_t size)
process more data
std::string md5_hex_uc(const void *data, std::uint32_t size)
process data and return 16 byte (128 bit) digest upper-case hex encoded
std::string md5_hex(const void *data, std::uint32_t size)
process data and return 16 byte (128 bit) digest hex encoded