LIBKECCAK_STATE_CREATE(3)

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

hey bestie!! welcome to libkeccak_state_create(3) β€” that's the LIBKECCAK_STATE_CREATE(3) page from the LIBKECCAK manual (Library Functions Manual), and it's giving "allocate me a hash state" energy βœ¨πŸ’…

πŸ’– NAME πŸ’–

libkeccak_state_create β€” allocate and initialise hash state πŸŽ€

✨ SYNOPSIS ✨

#include <libkeccak.h>

struct libkeccak_state *libkeccak_state_create(const struct libkeccak_spec *spec);

Link with -lkeccak. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so libkeccak_state_create() does the cute little thing: it allocates a brand-new struct libkeccak_state * with one initialised element, and then it sets the algorithm tuning parameters to exactly those specified by *spec. slay, that's the vibe. πŸ’–

πŸ”₯ RETURN VALUES πŸ”₯

on successful completion, libkeccak_state_create() returns a newly allocated struct libkeccak_state * (of one initialised element) 🫢. on error, NULL is returned and errno is set to describe the error 😭.

πŸ’€ ERRORS πŸ’€

libkeccak_state_create() may fail for any reason specified for the function malloc(3). so yeah, that's the error situation, bestie β€” fr fr. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page!! the footer says LIBKECCAK and LIBKECCAK_STATE_CREATE(3) β€” there's no date in the footer, so we're keeping it mysterious πŸ’œ mwah πŸŽ€

πŸ“¦ where this page comes from