LIBKECCAK_HMAC_CREATE(3)
π LIBKECCAK_HMAC_CREATE(3) π
okay bestie, welcome to the LIBKECCAK_HMAC_CREATE(3) page from the Library Functions Manual β¨ this one is all about making a fresh HMAC-hashing state and setting it up, and yes, the vibes are immaculate π
πΈ NAME πΈ
libkeccak_hmac_createβ allocate and initialise HMAC-hashing state π«Ά
β¨ SYNOPSIS β¨
#include <libkeccak.h>
struct libkeccak_hmac_state *libkeccak_hmac_create(const struct libkeccak_spec *spec, const void *key, size_t key_length);
and donβt forget, bestie: link with -lkeccak π
π DESCRIPTION π
okay so libkeccak_hmac_create() is the function that allocates a new struct libkeccak_hmac_state * with one initialised element π it then sets the algorithm tuning parameters to those specified by *spec, and sets the key to key of length key_length. thatβs the whole glow-up: allocate, initialise, tune, key. iconic behavior, no cap β¨
π«Ά RETURN VALUES π«Ά
on a successful completion, libkeccak_hmac_create() returns a newly allocated struct libkeccak_hmac_state * β and yes, of one initialised element π
on error? NULL, bestie π and errno is set to describe the error. thatβs the signal to go check what went wrong π«Ά
π ERRORS π
libkeccak_hmac_create() may fail for any of the errors specified for the functions malloc(3) and realloc(3) π so yeah, itβs giving memory-allocation drama, and thatβs the error menu here. not me pretending thereβs more π
π¦ SEE ALSO π¦
libkeccak_hmac_initialise(3)libkeccak_hmac_free(3)libkeccak_hmac_fast_free(3)libkeccak_hmac_duplicate(3)
go read these next, bestie, iykyk π«Άβ¨
okay thatβs the whole page, bestie π source/version field says LIBKECCAK, and the date slot in the original footer is blank β no fake date here, fr fr π
LIBKECCAK_HMAC_CREATE(3) out π
π¦ 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