The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
blake2s.h File Reference

the BLAKE2s hash (RFC 7693), without a key. More...

#include "common/stdint.h"

Go to the source code of this file.

Data Structures

struct  blake2s_t

Macros

#define BLAKE2S_BLOCK_SIZE   64
#define BLAKE2S_HASH_SIZE   32

Functions

void blake2s_init (blake2s_t *s, uint32_t out_length)
 start a hash.
void blake2s_update (blake2s_t *s, const void *data, uint32_t length)
void blake2s_final (blake2s_t *s, uint8_t *out)
 finish the hash.

Detailed Description

the BLAKE2s hash (RFC 7693), without a key.

the random pool uses it to mix its input.

Macro Definition Documentation

◆ BLAKE2S_BLOCK_SIZE

#define BLAKE2S_BLOCK_SIZE   64

◆ BLAKE2S_HASH_SIZE

#define BLAKE2S_HASH_SIZE   32

Function Documentation

◆ blake2s_init()

void blake2s_init ( blake2s_t * s,
uint32_t out_length )

start a hash.

Parameters
out_lengththe hash size, 1 to BLAKE2S_HASH_SIZE bytes.

◆ blake2s_update()

void blake2s_update ( blake2s_t * s,
const void * data,
uint32_t length )

◆ blake2s_final()

void blake2s_final ( blake2s_t * s,
uint8_t * out )

finish the hash.

the state must be started again before more use.