tlx
md5.cpp File Reference

Go to the source code of this file.

Namespaces

 tlx
 
 tlx::digest_detail
 

Functions

static uint32_t min (uint32_t x, uint32_t y)
 
static uint32_t load32l (const uint8_t *y)
 
static void store32l (uint32_t x, uint8_t *y)
 
static void store64l (uint64_t x, uint8_t *y)
 
static uint32_t F (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static uint32_t G (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static uint32_t H (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static uint32_t I (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static void FF (uint32_t &a, uint32_t &b, uint32_t &c, uint32_t &d, uint32_t M, uint32_t s, uint32_t t)
 
static void GG (uint32_t &a, uint32_t &b, uint32_t &c, uint32_t &d, uint32_t M, uint32_t s, uint32_t t)
 
static void HH (uint32_t &a, uint32_t &b, uint32_t &c, uint32_t &d, uint32_t M, uint32_t s, uint32_t t)
 
static void II (uint32_t &a, uint32_t &b, uint32_t &c, uint32_t &d, uint32_t M, uint32_t s, uint32_t t)
 
static void md5_compress (uint32_t state[4], const uint8_t *buf)
 
std::string md5_hex (const void *data, uint32_t size)
 process data and return 16 byte (128 bit) digest hex encoded More...
 
std::string md5_hex (const std::string &str)
 process data and return 16 byte (128 bit) digest hex encoded More...
 
std::string md5_hex_uc (const void *data, uint32_t size)
 process data and return 16 byte (128 bit) digest upper-case hex encoded More...
 
std::string md5_hex_uc (const std::string &str)
 process data and return 16 byte (128 bit) digest upper-case hex encoded More...
 

Variables

static const uint8_t Worder [64]
 
static const uint8_t Rorder [64]
 
static const uint32_t Korder [64]