LIBKECCAK_HMAC_CREATE(3)

πŸ“¦ version 1.4.3, in arch rolling, opensuse-leap 16.0

πŸŽ€ 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 πŸ¦‹

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