9 #ifndef CORE_BLAKE2S_HASH 10 #define CORE_BLAKE2S_HASH 17 unsigned char opaque[128];
49 void blake2s_256(
void *out,
const void *in,
size_t inlen);
85 #endif // CORE_BLAKE2S_HASH void blake2s_256(void *out, const void *in, size_t inlen)
One-shot convenience function to calculate blake2s_256 hash.
int blake2s(void *out, size_t outlen, const void *key, size_t keylen, const void *in, size_t inlen)
All in one blake2s hashing function.
void blake2s_final(blake2s_ctx *ctx_opaque, void *out)
Finalize hash calculation.
int blake2s_init(blake2s_ctx *ctx_opaque, size_t outlen, const void *key, size_t keylen)
Generic blake2s init function.
void blake2s_256_init(blake2s_ctx *ctx_opaque)
Initialize hash context.
void blake2s_update(blake2s_ctx *ctx_opaque, const void *in, size_t inlen)
Update context with incoming bytes.