shake256(9)
π 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 longinis, 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 π:
- the kernel file
./include/crypto/sha3.h struct sha3_ctx(9)sha3_zeroize_ctx(9)struct shake_ctx(9)shake_zeroize_ctx(9)sha3_224_init(9)sha3_256_init(9)sha3_384_init(9)sha3_512_init(9)sha3_update(9)sha3_final(9)shake128_init(9)shake256_init(9)shake_update(9)shake_squeeze(9)sha3_224(9)sha3_256(9)sha3_384(9)sha3_512(9)shake128(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms