libkeccak_hmac_reset3
Reinitialise a hmac-hashing state
Usage
#include <libkeccak.h> int libkeccak_hmac_reset(struct libkeccak_hmac_state *state, const void *key, size_t key_length);
Link with -lkeccak.
Overview
The libkeccak_hmac_reset() function reinitialises an HMAC-hashing state with a new key. key_length is the length of the key in bits. If key is NULL, the key remains unchanged.
Return values
The libkeccak_hmac_reset() function returns 0 successful completion. On error -1 is returned and errno is set to describe the error.
Errors
The libkeccak_hmac_reset() function may fail for any specified for the functions malloc(3) and realloc(3).