aes_cmac_final(9)
π aes_cmac_final(9) β or, the Kernel API Manual's lil' grand finale π
okay so bestie, welcome to aes_cmac_final(9) from the Kernel API Manual β the moment where you finally wrap up that AES-CMAC or AES-XCBC-MAC and get your pretty lil' MAC value out. β¨
πΈ NAME πΈ
aes_cmac_final β finish computing an AES-CMAC or AES-XCBC-MAC value π¦
β¨ SYNOPSIS β¨
void aes_cmac_final (struct aes_cmac_ctx *ctx , u8 out[static AES_BLOCK_SIZE] );
like, that's the whole vibe. one call, and you're done. π
π ARGUMENTS π
ctxβ the context you're finalizing; it must have been initialized already, no cap. if you skipped init, that's not it, bestie. πoutβ (output) the resulting MAC. this is where your hard-earned MAC lands, and honestly? she earned it. π
π«Ά DESCRIPTION π«Ά
so you've done all your updates, and now it's time to close it out. after finishing, this zeroizes ctx β like, scrubs it clean automatically, no notes. π₯
the way that means the caller does not need to do it β you don't have to manually zeroize anything, the function handles it for you. periodt. π
π CONTEXT π
any context. literally any. she's flexible like that. π§
β SEE ALSO β
go give these icons some love, iykyk:
- Kernel file
./include/crypto/aes-cbc-macs.h struct aes_cmac_key(9)aes_cmac_zeroize_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(9)
okay and one last lil' sign-off bestie π«Ά β this whole page is living under ./include/crypto, dated October 2026, and it's aes_cmac_final(9) in the Kernel API Manual. slay, secure, and done. π β¨ π
π¦ 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