shake128(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ shake128 β€” compute SHAKE128 in one shot πŸ’…

okay so this is shake128(9) from the Kernel API Manual, and bestie it is so chill. one function, four args, no drama. let's get into it 🫢


🌸 SYNOPSIS 🌸

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

that's it. that's the whole vibe check. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • in β€” the input data you're feeding in, bestie. the raw material. πŸ“
  • in_len β€” how long that input is, counted in bytes. don't lie about it, the math will know. 😭
  • out β€” the buffer where the output gets parked. you gotta bring your own, we're not allocating anything for you πŸ’…
  • out_len β€” how many bytes of output you want. yes, you pick. iconic behaviour honestly πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

it's a convenience function that computes SHAKE128 in one shot, no cap. literally one call and you're done.

the way that this works: use this one instead of the incremental API if you're able to hand over all the input at once and receive all the output at once. that's the whole deal β€” all in, all out, main character energy.

and the best part? all output lengths are supported. every single one. no weird edge-case gatekeeping. slay. πŸ’–


πŸ¦‹ CONTEXT πŸ¦‹

any context. fr fr, any. no constraints, no special preconditions, nothing to set up first. just go. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, assembled πŸ₯°:


ngl if you only have some of the input or you need the output in pieces, go hang out with the incremental crew instead β€” this one-shot is for the all-at-once girlies πŸ’€

and that's the page!! brought to you by ./include/crypto, dated October 2026, living at shake128(9) β€” mwah, go hash something πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from