LIBKECCAK_HMAC_SET_KEY(3)
π LIBKECCAK_HMAC_SET_KEY(3) π
okay so this is the LIBKECCAK_HMAC_SET_KEY(3) page, chilling in the Library Functions Manual β yes bestie, we're doing HMAC key stuff today. π
πΈ NAME πΈ
libkeccak_hmac_set_key β changes the key for a the HMAC-hashing state
β¨ SYNOPSIS β¨
#include <libkeccak.h>
int libkeccak_hmac_set_key(struct libkeccak_hmac_state *state, const void *key, size_t key_length);
Link with -lkeccak.
π DESCRIPTION π
So libkeccak_hmac_set_key() sets the key for an HMAC-hashing state without resetting the state of the underlying hashing-algorithm. The vibes stay intact, the key changes, periodt. β¨
key_length is the length of the key in bits β bits, bestie, not bytes. Don't get it twisted. π
π«Ά RETURN VALUES π«Ά
0β successful completion, slay β-1β error, anderrnois set to describe the error π
π ERRORS π
libkeccak_hmac_set_key() may fail for any of the reasons specified for the function realloc(3) β so that's the error lore you wanna check. π
π¦ SEE ALSO π¦
okay bye bestie, this page came from the LIBKECCAK source/version footer and it's page LIBKECCAK_HMAC_SET_KEY(3) β the footer didn't hand me a date, so no cap, that's the whole footer tea π
π¦ 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