shake256(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… shake256 β€” the one-shot SHAKE256 glow-up

ok so real talk, this is shake256(9) from the Kernel API Manual, and honestly? she's lowkey iconic. one function, four arguments, zero drama. let's get into it bestie ✨


✨ SYNOPSIS ✨

void shake256 (const u8 *in , size_t in_len , u8 *out , size_t out_len
);

that's it. that's the whole signature. no hidden catches, no "but wait there's more", just vibes 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • in β€” the input data you're feeding her. the raw material. the main character of the operation πŸ’–
  • in_len β€” how long in is, measured in bytes. gotta tell her the size, she's not a mind reader πŸ™ˆ
  • out β€” the buffer where the output gets stored. this is where the finished product lives πŸ’…
  • out_len β€” how many bytes of output you want her to produce. yes, you get to choose ✨

🌸 DESCRIPTION 🌸

okay so here's the tea: shake256 is a convenience function that computes SHAKE256 in one shot. one call, in goes the data, out comes the hash. not me being obsessed with how clean that is 😭

the vibe check here is when to use it: reach for this one instead of the incremental API if you're able to provide all the input at once as well as receive all the output at once. like, if you've got everything in hand already, why do the whole incremental song and dance? this is the shortcut, and she slays πŸ’…

and the best part? all output lengths are supported. every single one. no cap. whatever out_len you ask for, she'll deliver πŸ”₯

fr fr though β€” if your input or output is arriving in pieces, this isn't the function for you. that's incremental-API territory, bestie.

πŸ¦‹ CONTEXT πŸ¦‹

any context. literally any. she's flexible like that 🧚✨


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, gathered for you πŸ’œ:


ok that's the whole page, go forth and hash responsibly πŸ“

πŸ’– sourced from ./include/crypto and dated October 2026 β€” shoutout to whoever wrote her, she ate πŸ’–

πŸ“¦ where this page comes from