LIBKECCAK_HMAC_INITIALISE(3)
πΈ NAME πΈ
libkeccak_hmac_initialise β initialise HMAC-hashing state. This is the LIBKECCAK_..._INITIALISE(3) page from the Library Functions Manual, bestie β manual name folded in near the top, exactly as requested, no copy-pasted header line in sight. π
β¨ SYNOPSIS β¨
#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.
π¦ DESCRIPTION π¦
Okay so libkeccak_hmac_initialise() is the starter-upper for your HMAC-hashing state: it initialises *state and sets the algorithm tuning parameters to those specified by *spec, and it sets the key to key of length key_length. That's the whole assignment, fr fr. β¨
π RETURN VALUES π
libkeccak_hmac_initialise() returns 0 upon successful completion. Slay. On error, -1 is returned and errno is set to describe the error β so if you see -1, check errno, bestie. π
π ERRORS π
The libkeccak_hmac_initialise() function may fail for any error specified for malloc(3) and realloc(3). It's giving allocation-dependent, lowkey. If those functions have a bad day, this one can too. π
π SEE ALSO π
Go read these next, iykyk:
libkeccak_hmac_create(3)libkeccak_hmac_destroy(3)libkeccak_hmac_fast_destroy(3)libkeccak_hmac_copy(3)libkeccak_spec_cshake(3)libkeccak_spec_sha3(3)libkeccak_spec_shake(3)libkeccak_spec_rawshake(3)libkeccak_spec_check(3)libkeccak_generalised_spec_initialise(3)libkeccak_state_initialise(3)
Footer tea, served cute: source/version is LIBKECCAK, the page is LIBKECCAK_..._INITIALISE(3), and the original footer didn't hand us a date β so I'm not inventing one, periodt. Bye bestie! π
β¨π«Ά
π¦ 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