LIBKECCAK_...INITIALISE(3)
π 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, anderrnois 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 π₯
libkeccak_state_create(3)libkeccak_state_reset(3)libkeccak_state_destroy(3)libkeccak_state_fast_destroy(3)libkeccak_state_copy(3)libkeccak_fast_update(3)libkeccak_zerocopy_update(3)libkeccak_update(3)libkeccak_fast_digest(3)libkeccak_zerocopy_digest(3)libkeccak_digest(3)libkeccak_generalised_sum_fd(3)libkeccak_keccaksum_fd(3)libkeccak_sha3sum_fd(3)libkeccak_rawshakesum_fd(3)libkeccak_shakesum_fd(3)libkeccak_spec_cshake(3)libkeccak_spec_sha3(3)libkeccak_spec_shake(3)libkeccak_spec_rawshake(3)libkeccak_spec_check(3)libkeccak_generalised_spec_initialise(3)libkeccak_state_marshal(3)libkeccak_hmac_initialise(3)
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
- 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