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

BLAKE2s (see blake2s.h). More...

#include "blake2s.h"
#include "common/memory.h"

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

BLAKE2s (see blake2s.h).

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.