libkeccak_state_create3
Allocate and initialise hash state
Usage
#include <libkeccak.h> struct libkeccak_state *libkeccak_state_create(const struct libkeccak_spec *spec);
Link with -lkeccak.
Overview
The libkeccak_state_create() function allocates a new struct libkeccak_state * with one initialised element, and sets the algorithm tuning parameters to those specified by *spec.
Return values
The libkeccak_state_create() function returns a newly allocated struct libkeccak_state * (of one initialised element) upon successful completion. On error, NULL is returned and errno is set to describe the error.
Errors
The libkeccak_state_create() function may fail for any specified for the function malloc(3).