LIBKECCAK_..._CHUNKSIZE(3)

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

πŸ’– NAME πŸ’–

libkeccak_zerocopy_chunksize β€” get chunk size for zero-copy processing (ADVANCED) πŸ‘‘

okay so this is LIBKECCAK_..._CHUNKSIZE(3), and we’re in the Library Functions Manual β€” yes bestie, that exact title, no cap. This one is a little advanced, so hydrate and let’s go πŸ’…

✨ SYNOPSIS ✨

#include <libkeccak.h>

size_t libkeccak_zerocopy_chunksize(struct libkeccak_state *state);

Link with -lkeccak.

πŸ¦‹ DESCRIPTION πŸ¦‹

The libkeccak_zerocopy_chunksize() function returns the number of bytes the sponge in the state parameter processes per round. 🫢

Input to the libkeccak_zerocopy_update(3) function must be an integer multiple of this number, and memory allocated for the libkeccak_zerocopy_digest(3) function must also be a multiple of this number (further restrictions apply, see libkeccak_zerocopy_digest(3) for more details.) πŸ’–

🌸 RETURN VALUES 🌸

The libkeccak_zerocopy_chunksize() function returns the number of bytes that the sponge processes per processing round. ✨

πŸŽ€ ERRORS πŸŽ€

Good news, bestie: the libkeccak_zerocopy_chunksize() function cannot fail. It’s giving β€œno notes,” truly πŸ˜­πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ


Cute sign-off: this page came from the LIBKECCAK source/version, and the footer’s date slot is a mystery β€” no date listed, so I’m not inventing one, periodt πŸ’…πŸŽ€ LIBKECCAK_..._CHUNKSIZE(3) forever.

πŸ“¦ where this page comes from