LIBKECCAK_...INITIALISE(3)

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

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to LIBKECCAK_...INITIALISE(3) from the Library Functions Manual β€” it's the page for libkeccak_state_initialise, aka Initialise hash state. She's giving tiny-function-big-main-character-energy, and we're obsessed. πŸ’…βœ¨

✨ SYNOPSIS ✨

#include <libkeccak.h>

int libkeccak_state_initialise(struct libkeccak_state *state, const struct libkeccak_spec *spec);

Link with -lkeccak.

πŸ¦‹ DESCRIPTION πŸ¦‹

So libkeccak_state_initialise() does the thing: it initialises *state and sets the algorithm tuning parameters to those specified by *spec. That's the whole serve, fr fr. 🫢

🌸 RETURN VALUES 🌸

  • 0 β€” successful completion, slay. βœ…
  • -1 β€” on error, this is what comes back, and errno is set to describe the error. Cue the dramatic gasp πŸ˜­πŸ’€.

πŸ’œ ERRORS πŸ’œ

libkeccak_state_initialise() may fail for any of the errors specified for the function malloc(3). So if malloc is having a rough day, this function can catch the same energy. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯


That's the page, bestie πŸ’– Footer tea: the source/version is LIBKECCAK, and the right-hand footer text is LIBKECCAK_...INITIALISE(3) β€” there's no separate date shown, just that footer energy. Mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from