22#define BLAKE2_PACKED(x) __pragma(pack(push, 1)) x __pragma(pack(pop))
24#define BLAKE2_PACKED(x) x __attribute__((packed))
27#if defined(__cplusplus)
169 int blake2s(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
170 int blake2b(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
172 int blake2sp(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
173 int blake2bp(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
175 int blake2xs(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
176 int blake2xb(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
179 int blake2(
void* out,
size_t outlen,
const void* in,
size_t inlen,
const void* key,
size_t keylen);
181#if defined(__cplusplus)
int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, size_t keylen)
int blake2bp(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
struct blake2sp_state__ blake2sp_state
int blake2bp_final(blake2bp_state *S, void *out, size_t outlen)
int blake2xs_init(blake2xs_state *S, const size_t outlen)
int blake2s_init_param(blake2s_state *S, const blake2s_param *P)
struct blake2bp_state__ blake2bp_state
int blake2xb(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2b_update(blake2b_state *S, const void *in, size_t inlen)
int blake2xb_init(blake2xb_state *S, const size_t outlen)
int blake2xb_init_key(blake2xb_state *S, const size_t outlen, const void *key, size_t keylen)
struct blake2b_param__ blake2b_param
struct blake2xs_state__ blake2xs_state
int blake2s_init(blake2s_state *S, size_t outlen)
int blake2sp_init(blake2sp_state *S, size_t outlen)
struct blake2s_state__ blake2s_state
int blake2b(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2bp_init(blake2bp_state *S, size_t outlen)
struct blake2b_state__ blake2b_state
int blake2xs_update(blake2xs_state *S, const void *in, size_t inlen)
int blake2sp(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2b_init(blake2b_state *S, size_t outlen)
int blake2bp_init_key(blake2bp_state *S, size_t outlen, const void *key, size_t keylen)
int blake2(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2xb_update(blake2xb_state *S, const void *in, size_t inlen)
int blake2s_update(blake2s_state *S, const void *in, size_t inlen)
int blake2sp_update(blake2sp_state *S, const void *in, size_t inlen)
int blake2s_init_key(blake2s_state *S, size_t outlen, const void *key, size_t keylen)
int blake2xs_init_key(blake2xs_state *S, const size_t outlen, const void *key, size_t keylen)
int blake2b_final(blake2b_state *S, void *out, size_t outlen)
int blake2s(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2b_init_param(blake2b_state *S, const blake2b_param *P)
struct blake2xb_state__ blake2xb_state
struct blake2s_param__ blake2s_param
int blake2bp_update(blake2bp_state *S, const void *in, size_t inlen)
int blake2sp_final(blake2sp_state *S, void *out, size_t outlen)
int blake2sp_init_key(blake2sp_state *S, size_t outlen, const void *key, size_t keylen)
int blake2xs(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2xs_final(blake2xs_state *S, void *out, size_t outlen)
int blake2s_final(blake2s_state *S, void *out, size_t outlen)
int blake2xb_final(blake2xb_state *S, void *out, size_t outlen)
uint8_t buf[BLAKE2B_BLOCKBYTES]
uint8_t buf[4 *BLAKE2B_BLOCKBYTES]
uint8_t buf[BLAKE2S_BLOCKBYTES]
uint8_t buf[8 *BLAKE2S_BLOCKBYTES]