Linux repositories inspector

libkeccak_hmac_initialise(3)

LIBKECCAK

libkeccak-devel

Development files for libkeccak

NAME

libkeccak_hmac_initialise - Initialise HMAC-hashing state

SYNOPSIS

#include <libkeccak.h>

int libkeccak_hmac_initialise(struct libkeccak_hmac_state *state, const struct libkeccak_spec *spec, const void *key, size_t key_length);
Link with -lkeccak.

DESCRIPTION

The libkeccak_hmac_initialise() function initialises *state and sets the algorithm tuning parameters to those specified by *spec, and the key to key of length key_length.

RETURN VALUES

The libkeccak_hmac_initialise() function returns 0 upon successful completion. On error, -1 is returned and errno is set to describe the error.

ERRORS

The libkeccak_hmac_initialise() function may fail for any specified for the functions malloc(3) and realloc(3).
⇧ Top