aes_cmac_zeroize_key(9)
π aes_cmac_zeroize_key(9) π
okay so bestie, this one is from the Kernel API Manual and itβs here to teach you how to zeroize an aes_cmac_key structure before your secrets get messy. itβs giving βclean up your room before your mom sees itβ energy, but for crypto material. π§β¨
πΈ NAME πΈ
aes_cmac_zeroize_key β Zeroize an aes_cmac_key structure. π
β¨ SYNOPSIS β¨
void aes_cmac_zeroize_key (struct aes_cmac_key *key );
π ARGUMENTS π
keyβ the location of the key structure that should be zeroized. yes bestie, the actual struct, not a vibe. π«Ά
π¦ DESCRIPTION π¦
okay so what this does is explicitly fills the aes_cmac_key with zeroes. literally overwrites it with zeroes. slay.
you should do this once the key is not required anymore. why? to avoid that its contents are leaked on the stack or heap (if not using kfree_sensitive). itβs the βlog out and wipe the whiteboardβ step, except the whiteboard is your key material and the marker is a security incident waiting to happen. ππ₯
bestie, do the zeroize when the key is not required anymore. no cap, this is how you avoid leaked bytes. periodt. π
π SEE ALSO π
- Kernel file
./include/crypto/aes-cbc-macs.h struct aes_cmac_key(9)struct aes_cmac_ctx(9)aes_cmac_zeroize_ctx(9)aes_cmac_preparekey(9)aes_xcbcmac_preparekey(9)aes_cmac_init(9)aes_cmac_update(9)aes_cmac_final(9)aes_cmac(9)
xoxo, your kernel bestie π
β source/version ./include/crypto, dated October 2026. stay zeroized and stay iconic. ππ
π¦ 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