Thrill  0.1
sha512.cpp File Reference
+ Include dependency graph for sha512.cpp:

Go to the source code of this file.

Namespaces

 tlx
 
 tlx::digest_detail
 

Functions

static uint64_t Ch (const uint64_t &x, const uint64_t &y, const uint64_t &z)
 
static uint64_t Gamma0 (uint64_t x)
 
static uint64_t Gamma1 (uint64_t x)
 
static uint64_t load64 (const unsigned char *y)
 
static uint64_t Maj (const uint64_t &x, const uint64_t &y, const uint64_t &z)
 
static uint32_t min (uint32_t x, uint32_t y)
 
static uint64_t Sh (uint64_t x, uint64_t n)
 
static void sha512_compress (uint64_t state[8], const uint8_t *buf)
 
std::string sha512_hex (const void *data, uint32_t size)
 process data and return 64 byte (512 bit) digest hex encoded More...
 
std::string sha512_hex (const std::string &str)
 process data and return 64 byte (512 bit) digest hex encoded More...
 
std::string sha512_hex_uc (const void *data, uint32_t size)
 process data and return 64 byte (512 bit) digest upper-case hex encoded More...
 
std::string sha512_hex_uc (const std::string &str)
 process data and return 64 byte (512 bit) digest upper-case hex encoded More...
 
static uint64_t Sigma0 (uint64_t x)
 
static uint64_t Sigma1 (uint64_t x)
 
static void store64 (uint64_t x, unsigned char *y)
 

Variables

static const uint64_t K [80]