blake3_init(3)
limb manual
blake3_init(3)
NAME
blake3_init, blake3_update, blake3_final - compute the BLAKE3 of a given block of data
SYNOPSIS
#include <limb/blake3.h>
void blake3_init(void *ctx); void blake3_update(const void *msg, size_t size, void *ctx); void blake3_final(void * restrict md, void *ctx);
DESCRIPTION
The blake3_init
() function initializes the given blake3 context ctx
to
calculate a 256bit BLAKE3 digest.
The blake3_update
() function feeds the specified chunk of data pointed by msg
of length size
(in bytes) to be hashed into the given ctx
. You can call this
function repeatedly as many times as needed.
The blake3_final
() function stores the calculated hash from ctx
in binary
form into md
, which must be able to store 32 bytes.