LIBKECCAK_HMAC_RESET(3)

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

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


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