digestpp 1.0
C++11 header-only message digest library
Loading...
Searching...
No Matches
digestpp::detail::blake_functions Namespace Reference

Functions

static void G (int r, int i, uint32_t &a, uint32_t &b, uint32_t &c, uint32_t &d, uint32_t *M)
 
static void G (int r, int i, uint64_t &a, uint64_t &b, uint64_t &c, uint64_t &d, uint64_t *M)
 
template<typename T >
static void round (int r, T *M, T *v)
 
template<typename T >
C (int t)
 
template<>
uint32_t C< uint32_t > (int t)
 
template<>
uint64_t C< uint64_t > (int t)
 
template<typename T >
void transform (const unsigned char *data, size_t num_blks, bool padding, std::array< T, 12 > &H, uint64_t total, bool final)
 
template<typename T >
void set_salt (std::array< T, 12 > &H, const unsigned char *salt, size_t saltlen)
 

Function Documentation

◆ C()

template<typename T >
T digestpp::detail::blake_functions::C ( int t)
inline

◆ C< uint32_t >()

template<>
uint32_t digestpp::detail::blake_functions::C< uint32_t > ( int t)
inline

◆ C< uint64_t >()

template<>
uint64_t digestpp::detail::blake_functions::C< uint64_t > ( int t)
inline

◆ G() [1/2]

static void digestpp::detail::blake_functions::G ( int r,
int i,
uint32_t & a,
uint32_t & b,
uint32_t & c,
uint32_t & d,
uint32_t * M )
inlinestatic

◆ G() [2/2]

static void digestpp::detail::blake_functions::G ( int r,
int i,
uint64_t & a,
uint64_t & b,
uint64_t & c,
uint64_t & d,
uint64_t * M )
inlinestatic

◆ round()

template<typename T >
static void digestpp::detail::blake_functions::round ( int r,
T * M,
T * v )
inlinestatic

◆ set_salt()

template<typename T >
void digestpp::detail::blake_functions::set_salt ( std::array< T, 12 > & H,
const unsigned char * salt,
size_t saltlen )
inline

◆ transform()

template<typename T >
void digestpp::detail::blake_functions::transform ( const unsigned char * data,
size_t num_blks,
bool padding,
std::array< T, 12 > & H,
uint64_t total,
bool final )
inline