tlx
sha1.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 void store64h (uint64_t x, unsigned char *y)
 
static uint32_t load32h (const uint8_t *y)
 
static void store32h (uint32_t x, uint8_t *y)
 
static uint32_t F0 (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static uint32_t F1 (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static uint32_t F2 (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static uint32_t F3 (const uint32_t &x, const uint32_t &y, const uint32_t &z)
 
static void sha1_compress (uint32_t state[4], const uint8_t *buf)
 
std::string sha1_hex (const void *data, uint32_t size)
 process data and return 20 byte (160 bit) digest hex encoded More...
 
std::string sha1_hex (const std::string &str)
 process data and return 20 byte (160 bit) digest hex encoded More...
 
std::string sha1_hex_uc (const void *data, uint32_t size)
 process data and return 20 byte (160 bit) digest upper-case hex encoded More...
 
std::string sha1_hex_uc (const std::string &str)
 process data and return 20 byte (160 bit) digest upper-case hex encoded More...