shake_update(9)
π shake_update(9) β like, the Kernel API Manual's take on feeding your SHAKE π
okay so bestie, welcome to shake_update β a little function from the Kernel API Manual that is literally the "feed me more data" button for your SHAKE context β¨
πΈ NAME πΈ
shake_update β update a SHAKE context with input data. that's it, that's the vibe π«Ά
π SYNOPSIS π
void shake_update (struct shake_ctx *ctx , const u8 *in , size_t in_len );
like yes, she's void, she returns nothing, she just does π
π¦ ARGUMENTS π¦
ctxβ the context you're updating. β οΈ it must have been initialized already, no cap, don't come at her with a raw uninitialized context, that's not the move πinβ the input data. the actual bytes, the whole point of the function, main character energy fr fr πin_lenβ length of the input data, in bytes. yes, bytes. keep track, bestie π
β¨ DESCRIPTION β¨
so here's the tea: you can call this any number of times to add more input data to SHAKE128 or SHAKE256. any number!! keep feeding her, she's hungry, she'll take it π₯
but β and this is the important part β this cannot be called after squeezing has begun. once you start squeezing, that's it, that chapter is closed, the door is shut, no going back π it's giving "one-way street."
so like, absorb first, squeeze later. in that order. periodt.
π CONTEXT π
Any context. every context. all of them. she's not picky, she's an icon π
β SEE ALSO β
the whole friend group, ok:
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_squeeze(9), sha3_224(9), sha3_256(9), sha3_384(9), sha3_512(9), shake128(9), shake256(9)
and that's the whole page, bestie π§ this lil beauty lives in ./include/crypto and the manual's got it dated October 2026 β slay, iconic, no notes πΈπ
β¨
π¦ 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