libkeccak_state_initialise3
Initialise hash state
Usage
#include <libkeccak.h> int libkeccak_state_initialise(struct libkeccak_state *state, const struct libkeccak_spec *spec);
Link with -lkeccak.
Overview
The libkeccak_state_initialise() function initialises *state and sets the algorithm tuning parameters to those specified by *spec.
Return values
The libkeccak_state_initialise() function returns 0 upon successful completion. On error, -1 is returned and errno is set to describe the error.
Errors
The libkeccak_state_initialise() function may fail for any specified for the function malloc(3).