tlx
tlx::digest_detail Namespace Reference

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)
 
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)
 
static uint32_t min (uint32_t x, uint32_t y)
 
static void store64 (uint64_t x, unsigned char *y)
 
static uint64_t load64 (const unsigned char *y)
 
static uint64_t Ch (const uint64_t &x, const uint64_t &y, const uint64_t &z)
 
static uint64_t Maj (const uint64_t &x, const uint64_t &y, const uint64_t &z)
 
static uint64_t Sh (uint64_t x, uint64_t n)
 
static uint64_t Sigma0 (uint64_t x)
 
static uint64_t Sigma1 (uint64_t x)
 
static uint64_t Gamma0 (uint64_t x)
 
static uint64_t Gamma1 (uint64_t x)
 
static void sha512_compress (uint64_t state[8], const uint8_t *buf)
 

Variables

static const uint8_t Worder [64]
 
static const uint8_t Rorder [64]
 
static const uint32_t Korder [64]
 
static const uint64_t K [80]
 

Function Documentation

static uint64_t tlx::digest_detail::Ch ( const uint64_t &  x,
const uint64_t &  y,
const uint64_t &  z 
)
inlinestatic

Definition at line 78 of file sha512.cpp.

static uint32_t tlx::digest_detail::F ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 54 of file md5.cpp.

static uint32_t tlx::digest_detail::F0 ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 50 of file sha1.cpp.

static uint32_t tlx::digest_detail::F1 ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 54 of file sha1.cpp.

static uint32_t tlx::digest_detail::F2 ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 58 of file sha1.cpp.

static uint32_t tlx::digest_detail::F3 ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 62 of file sha1.cpp.

static void tlx::digest_detail::FF ( uint32_t &  a,
uint32_t &  b,
uint32_t &  c,
uint32_t &  d,
uint32_t  M,
uint32_t  s,
uint32_t  t 
)
inlinestatic

Definition at line 70 of file md5.cpp.

static uint32_t tlx::digest_detail::G ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 58 of file md5.cpp.

static uint64_t tlx::digest_detail::Gamma0 ( uint64_t  x)
inlinestatic

Definition at line 94 of file sha512.cpp.

static uint64_t tlx::digest_detail::Gamma1 ( uint64_t  x)
inlinestatic

Definition at line 97 of file sha512.cpp.

static void tlx::digest_detail::GG ( uint32_t &  a,
uint32_t &  b,
uint32_t &  c,
uint32_t &  d,
uint32_t  M,
uint32_t  s,
uint32_t  t 
)
inlinestatic

Definition at line 76 of file md5.cpp.

static uint32_t tlx::digest_detail::H ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 62 of file md5.cpp.

static void tlx::digest_detail::HH ( uint32_t &  a,
uint32_t &  b,
uint32_t &  c,
uint32_t &  d,
uint32_t  M,
uint32_t  s,
uint32_t  t 
)
inlinestatic

Definition at line 82 of file md5.cpp.

static uint32_t tlx::digest_detail::I ( const uint32_t &  x,
const uint32_t &  y,
const uint32_t &  z 
)
inlinestatic

Definition at line 66 of file md5.cpp.

static void tlx::digest_detail::II ( uint32_t &  a,
uint32_t &  b,
uint32_t &  c,
uint32_t &  d,
uint32_t  M,
uint32_t  s,
uint32_t  t 
)
inlinestatic

Definition at line 88 of file md5.cpp.

static uint32_t tlx::digest_detail::load32h ( const uint8_t *  y)
inlinestatic

Definition at line 40 of file sha1.cpp.

static uint32_t tlx::digest_detail::load32l ( const uint8_t *  y)
inlinestatic

Definition at line 36 of file md5.cpp.

static uint64_t tlx::digest_detail::load64 ( const unsigned char *  y)
inlinestatic

Definition at line 70 of file sha512.cpp.

static uint64_t tlx::digest_detail::Maj ( const uint64_t &  x,
const uint64_t &  y,
const uint64_t &  z 
)
inlinestatic

Definition at line 82 of file sha512.cpp.

static void tlx::digest_detail::md5_compress ( uint32_t  state[4],
const uint8_t *  buf 
)
static

Definition at line 124 of file md5.cpp.

static uint32_t tlx::digest_detail::min ( uint32_t  x,
uint32_t  y 
)
inlinestatic

Definition at line 32 of file md5.cpp.

static uint32_t tlx::digest_detail::min ( uint32_t  x,
uint32_t  y 
)
inlinestatic

Definition at line 32 of file sha1.cpp.

static uint32_t tlx::digest_detail::min ( uint32_t  x,
uint32_t  y 
)
inlinestatic

Definition at line 62 of file sha512.cpp.

static uint64_t tlx::digest_detail::Sh ( uint64_t  x,
uint64_t  n 
)
inlinestatic

Definition at line 85 of file sha512.cpp.

static void tlx::digest_detail::sha1_compress ( uint32_t  state[4],
const uint8_t *  buf 
)
static

Definition at line 66 of file sha1.cpp.

static void tlx::digest_detail::sha512_compress ( uint64_t  state[8],
const uint8_t *  buf 
)
static

Definition at line 101 of file sha512.cpp.

static uint64_t tlx::digest_detail::Sigma0 ( uint64_t  x)
inlinestatic

Definition at line 88 of file sha512.cpp.

static uint64_t tlx::digest_detail::Sigma1 ( uint64_t  x)
inlinestatic

Definition at line 91 of file sha512.cpp.

static void tlx::digest_detail::store32h ( uint32_t  x,
uint8_t *  y 
)
inlinestatic

Definition at line 44 of file sha1.cpp.

static void tlx::digest_detail::store32l ( uint32_t  x,
uint8_t *  y 
)
inlinestatic

Definition at line 43 of file md5.cpp.

static void tlx::digest_detail::store64 ( uint64_t  x,
unsigned char *  y 
)
inlinestatic

Definition at line 66 of file sha512.cpp.

static void tlx::digest_detail::store64h ( uint64_t  x,
unsigned char *  y 
)
inlinestatic

Definition at line 36 of file sha1.cpp.

static void tlx::digest_detail::store64l ( uint64_t  x,
uint8_t *  y 
)
inlinestatic

Definition at line 48 of file md5.cpp.

Variable Documentation

const uint64_t K[80]
static

Definition at line 32 of file sha512.cpp.

const uint32_t Korder[64]
static

Definition at line 108 of file md5.cpp.

const uint8_t Rorder[64]
static

Definition at line 101 of file md5.cpp.

const uint8_t Worder[64]
static

Definition at line 94 of file md5.cpp.