LIBKECCAK_STATE_CREATE(3)
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 π
libkeccak_state_initialise(3)libkeccak_state_free(3)libkeccak_state_fast_free(3)libkeccak_state_duplicate(3)
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
- arch rolling: libkeccak 1.4.3-1 Β· custom:ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms