libkeccak_hmac_initialise(3)

libkeccak_hmac_initialise3

Initialise hmac-hashing state

Usage

#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.

Overview

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).

From libkeccak 1.4.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.