sha3_zeroize_ctx(9)
π sha3_zeroize_ctx β Kernel API Manual, bestie edition β¨
okay so real talk, this one is a tiny little king in the sha3.h universe and it lives in the Kernel API Manual, section 9. it's short, it's sweet, it's giving "small but mighty" and honestly? obsessed. π
πΈ NAME πΈ
sha3_zeroize_ctx β zeroize a SHA-3 context π§Ήβ¨
like, wipe it clean. bye-bye secrets. no cap.
β¨ SYNOPSIS β¨
void sha3_zeroize_ctx (struct sha3_ctx *ctx );
that's it. that's the whole vibe. π
π¦ ARGUMENTS π¦
ctxβ the context you're zeroizing π«Ά literally hand it over and it gets scrubbed.
π DESCRIPTION π
so this function zeroizes a SHA-3 context. iconic behaviour, honestly. π
big thing to know: this is already called by sha3_final β so if you're going through sha3_final, bestie, you're already covered, it's handled, don't even worry about it. πβ¨
but if you're abandoning a context without calling sha3_final, that's when you call this explicitly. do not leave that context just sitting there with its data still in it β call sha3_zeroize_ctx and let it go out clean. π
lowkey important: the whole point is clearing the context out, so don't skip this when you're bailing on a context early.
π₯ SEE ALSO π₯
- Kernel file
./include/crypto/sha3.h struct sha3_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)shake256(9)
that's the whole page, bestie β go zeroize something responsibly π§ββοΈπ
and for the sign-off: this little beauty comes from ./include/crypto, dated October 2026. slay. periodt. πβ
π¦ 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