shake128(9)
β¨ 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 π₯°:
- 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)shake256(9)
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
- 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