14 #ifndef TLX_DIGEST_MD5_HEADER 15 #define TLX_DIGEST_MD5_HEADER 34 MD5(
const void* data, uint32_t size);
36 explicit MD5(
const std::string& str);
39 void process(
const void* data, uint32_t size);
41 void process(
const std::string& str);
64 std::string
md5_hex(
const void* data, uint32_t size);
66 std::string
md5_hex(
const std::string& str);
69 std::string
md5_hex_uc(
const void* data, uint32_t size);
71 std::string
md5_hex_uc(
const std::string& str);
77 #endif // !TLX_DIGEST_MD5_HEADER std::string md5_hex_uc(const void *data, uint32_t size)
process data and return 16 byte (128 bit) digest upper-case hex encoded
std::string digest_hex()
finalize computation and return 16 byte (128 bit) digest hex encoded
void process(const void *data, uint32_t size)
process more data
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
std::string md5_hex(const void *data, uint32_t size)
process data and return 16 byte (128 bit) digest hex encoded
void finalize(void *digest)
finalize computation and output 16 byte (128 bit) digest
MD-5 processor without external dependencies.