21 #ifndef __included_crypto_blake2s_h__ 22 #define __included_crypto_blake2s_h__ 27 #define BLAKE2_PACKED(x) __pragma(pack(push, 1)) x __pragma(pack(pop)) 29 #define BLAKE2_PACKED(x) x __attribute__((packed)) 55 uint8_t digest_length;
79 int blake2s (
void *out,
size_t outlen,
const void *in,
size_t inlen,
80 const void *
key,
size_t keylen);
int blake2s_init(blake2s_state_t *S, size_t outlen)
int blake2s_init_key(blake2s_state_t *S, size_t outlen, const void *key, size_t keylen)
struct blake2s_param blake2s_param_t
int blake2s_final(blake2s_state_t *S, void *out, size_t outlen)
int blake2s_update(blake2s_state_t *S, const void *in, size_t inlen)
int blake2s(void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
int blake2s_init_param(blake2s_state_t *S, const blake2s_param_t *P)
uint8_t buf[BLAKE2S_BLOCK_BYTES]
struct blake2s_state blake2s_state_t