LIBKECCAK_HMAC_SET_KEY(3)

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

πŸŽ€ 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, and errno is 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