LIBKECCAK_FAST_SQUEEZE(3)

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

okay bestie, welcome to LIBKECCAK_FAST_SQUEEZE(3) from the Library Functions Manual πŸ’…βœ¨ this page is short, it is sweet, and it is literally about running the squeeze phase. no cap, it ate.

🌸 NAME 🌸

libkeccak_squeeze β€” runs the squeeze phase. that is the whole name, bestie. iconic and concise. πŸŽ€

✨ SYNOPSIS ✨

#include <libkeccak.h>

void libkeccak_squeeze(struct libkeccak_state *state, void *hashsum);

and you link with -lkeccak. yes, exactly that flag. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so libkeccak_squeeze() runs the Keccak squeeze phase on the hash process described by *state, and it stores a new digest, in binary form, in hashsum. that is the vibe. πŸ”₯

hashsum has the same requirement as for the libkeccak_digest(3) and libkeccak_fast_digest(3) functions: it must have an allocation size of at least ((state->n + 7) / 8) bytes. lowkey important, do not skimp on the allocation. πŸ“πŸ’–

however β€” and this is the dramatic part β€” it may not be NULL. not even a little. no NULL era allowed. πŸ’€

πŸ’– RETURN VALUES πŸ’–

The libkeccak_squeeze() function does not return any value. it is giving void, literally and metaphorically. πŸ•³οΈβœ¨

πŸŽ€ ERRORS πŸŽ€

The libkeccak_squeeze() function cannot fail. iconic behavior, honestly. it just cannot. πŸ‘‘πŸ’…

🌈 SEE ALSO 🌈

go read these next, bestie:


xoxo, your LIBKECCAK girlie πŸ’– source/version: LIBKECCAK β€” and the date did not show up on this page, so no invented timestamp, periodt. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from