26#ifndef WOLF_CRYPT_BLAKE2_H
27#define WOLF_CRYPT_BLAKE2_H
29#include <wolfssl/wolfcrypt/settings.h>
31#if defined(HAVE_BLAKE2) || defined(HAVE_BLAKE2S)
33#include <wolfssl/wolfcrypt/blake2-int.h>
38 #define wc_InitBlake2b InitBlake2b
39 #define wc_Blake2bUpdate Blake2bUpdate
40 #define wc_Blake2bFinal Blake2bFinal
50 BLAKE2B_ID = WC_HASH_TYPE_BLAKE2B,
54 BLAKE2S_ID = WC_HASH_TYPE_BLAKE2S,
84WOLFSSL_API
int wc_InitBlake2s(
Blake2s*, word32);
85WOLFSSL_API
int wc_Blake2sUpdate(
Blake2s*,
const byte*, word32);
86WOLFSSL_API
int wc_Blake2sFinal(
Blake2s*,
byte*, word32);
WOLFSSL_API int wc_InitBlake2b(Blake2b *, word32)
This function initializes a Blake2b structure for use with the Blake2 hash function.
Definition blake2b.c:422
WOLFSSL_API int wc_Blake2bUpdate(Blake2b *, const byte *, word32)
This function updates the Blake2b hash with the given input data. This function should be called afte...
Definition blake2b.c:434
WOLFSSL_API int wc_Blake2bFinal(Blake2b *, byte *, word32)
This function computes the Blake2b hash of the previously supplied input data. The output hash will b...
Definition blake2b.c:441