LIBKECCAK_HMAC_RESET(3)
π¦ NAME π¦
okay bestie, welcome to LIBKECCAK_HMAC_RESET(3) from the Library Functions Manual π
libkeccak_hmac_reset β reinitialise a HMAC-hashing state, and yes that's the whole name vibe β¨
β¨ SYNOPSIS β¨
first up, you're gonna want this include, no cap:
#include <libkeccak.h>
then here's the function signature, exactly as it is:
int libkeccak_hmac_reset(struct libkeccak_hmac_state *state, const void *key, size_t key_length);
Link with -lkeccak. that's the synopsis, periodt π«Ά
π DESCRIPTION π
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 β so you can swap in a new key or just leave the existing one alone, your call, main character energy π₯
π RETURN VALUES π
The libkeccak_hmac_reset() function returns 0 for successful completion. On error, -1 is returned and errno is set to describe the error. so 0 is the slay outcome, and -1 means check errno, bestie π
π₯ ERRORS π₯
The libkeccak_hmac_reset() function may fail for any reason specified for the functions malloc(3) and realloc(3) β allocation gremlins can absolutely ruin the vibe, so yeah, errno is your friend here π
π SEE ALSO π
go read these too, iykyk π§
libkeccak_hmac_create(3)libkeccak_hmac_initialise(3)libkeccak_hmac_set_key(3)libkeccak_hmac_wipe(3)libkeccak_hmac_fast_free(3)libkeccak_hmac_free(3)libkeccak_hmac_fast_destroy(3)libkeccak_hmac_destroy(3)
xoxo, your LIBKECCAK bestie β catch you on the LIBKECCAK_HMAC_RESET(3) page, and that's the footer vibe: source/version LIBKECCAK, page LIBKECCAK_HMAC_RESET(3), no date printed so we're not inventing one π«Άπ
π¦ where this page comes from
- arch rolling: libkeccak 1.4.3-1 Β· custom:ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms