aes_cmac_zeroize_ctx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… aes_cmac_zeroize_ctx(9) β€” zeroize an aes_cmac_ctx structure

okay so bestie, welcome to the Kernel API Manual ✨ this one's a short one but it's lowkey important, fr fr. it's all about wiping a crypto context clean before it ghosts you 🫢


✨ NAME ✨

aes_cmac_zeroize_ctx β€” Zeroize an aes_cmac_ctx structure 🧹


✨ SYNOPSIS ✨

void aes_cmac_zeroize_ctx (struct aes_cmac_ctx *ctx );

that's it. that's the whole vibe check πŸ’€ one function, one pointer, no return value, no drama.


✨ ARGUMENTS ✨

  • ctx β€” the location of the context that should be zeroized. so like, the address of your struct aes_cmac_ctx, pointing right at the thing you want scrubbed πŸ‘‘ this is the main character of the whole page honestly.

✨ DESCRIPTION ✨

so what does it do? it explicitly fills the aes_cmac_ctx with zeroes. that's the whole bit. no sneaky magic, no clever tricks, just zeroes where your context used to be 🌸

and when do you call it? the moment the context is not required anymore, bestie. because if you don't, its contents can leak on the stack or heap and that is not the slay we're going for 😭 nobody wants leftover crypto state just vibing in memory. it's giving security hazard. we don't love that.

⚠️ heads up: this is only required if you're not using aes_cmac_final. if aes_cmac_final is already in the picture, it's got you covered β€” don't double up, iykyk πŸ’…

✨ SEE ALSO ✨

go touch some of these, they're all part of the same friend group 🫢


okay that's the page!! πŸ’– huge shoutout to ./include/crypto for housing this iconic little file, and to October 2026 for the timestamp β€” the Kernel API Manual really said "short but necessary" and honestly? ate. πŸ‘‘βœ¨ go zeroize responsibly, bestie πŸŽ€

πŸ“¦ where this page comes from