My Project
Loading...
Searching...
No Matches
blake2.h File Reference

Go to the source code of this file.

Data Structures

struct  Blake2b
 
struct  Blake2s
 

Typedefs

typedef struct Blake2b Blake2b
 
typedef struct Blake2s Blake2s
 

Functions

WOLFSSL_API int wc_InitBlake2b (Blake2b *, word32)
 This function initializes a Blake2b structure for use with the Blake2 hash function.
 
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 after wc_InitBlake2b, and repeated until one is ready for the final hash: wc_Blake2bFinal.
 
WOLFSSL_API int wc_Blake2bFinal (Blake2b *, byte *, word32)
 This function computes the Blake2b hash of the previously supplied input data. The output hash will be of length requestSz, or, if requestSz==0, the digestSz of the b2b structure. This function should be called after wc_InitBlake2b and wc_Blake2bUpdate has been processed for each piece of input data desired.
 
WOLFSSL_API int wc_InitBlake2s (Blake2s *, word32)
 
WOLFSSL_API int wc_Blake2sUpdate (Blake2s *, const byte *, word32)
 
WOLFSSL_API int wc_Blake2sFinal (Blake2s *, byte *, word32)
 

Variables

 C
 

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
enum {
#ifdef HAVE_BLAKE2B
BLAKE2B_ID = WC_HASH_TYPE_BLAKE2B,
BLAKE2B_256 = 32,
#endif
#ifdef HAVE_BLAKE2S
BLAKE2S_ID = WC_HASH_TYPE_BLAKE2S,
BLAKE2S_256 = 32
#endif
}