21 #define ALIGN(x) __declspec(align(x)) 23 #define ALIGN(x) __attribute__ ((__aligned__(x))) 26 #if defined(__cplusplus) 55 ALIGN( 64 ) typedef struct __blake2b_state
73 int eq_blake2b( uint8_t *out,
const void *in,
const void *key,
const uint8_t outlen,
const uint64_t inlen, uint8_t keylen );
75 static inline int eq_blake2( uint8_t *out,
const void *in,
const void *key,
const uint8_t outlen,
const uint64_t inlen, uint8_t keylen )
77 return eq_blake2b( out, in, key, outlen, inlen, keylen );
80 #if defined(__cplusplus)
uint8_t salt[BLAKE2B_SALTBYTES]
int eq_blake2b_init_key(blake2b_state *S, const uint8_t outlen, const void *key, const uint8_t keylen)
int eq_blake2b_init_param(blake2b_state *S, const blake2b_param *P)
int eq_blake2b_update(blake2b_state *S, const uint8_t *in, uint64_t inlen)
int eq_blake2b(uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen)
int eq_blake2b_final(blake2b_state *S, uint8_t *out, uint8_t outlen)
struct __blake2b_param blake2b_param
int eq_blake2b_init(blake2b_state *S, const uint8_t outlen)
uint8_t personal[BLAKE2B_PERSONALBYTES]