aes_ccm_decrypt_final(9)
π aes_ccm_decrypt_final β like, the grand finale of AES-CCM decryption
okay bestie, welcome to the aes_ccm_decrypt_final page β it's from the Kernel API Manual, section 9, and yeah, it's giving "last step of a very serious crypto ritual" energy. π
β¨ SYNOPSIS β¨
int aes_ccm_decrypt_final (struct aes_ccm_ctx *ctx , const u8 *authtag
);
that's the whole signature, no cap β it takes two things and hands you back an int. π«Ά
πΈ ARGUMENTS πΈ
ctxβ an AES-CCM context. like, the little workspace where all the crypto state has been chilling this whole time. π§authtagβ the stored authentication tag. and bestie, its length is exactly theauthtag_lenthat was passed toaes_ccm_preparekeyβ don't go freestyling a different size, iykyk. π₯
π DESCRIPTION π
This is the wrap-up call. the finishing move. the "okay we're done here" moment. β¨
and here's the cute part: it also zeroizes ctx, so the caller doesn't need to do it. that's right, it cleans up after itself β main character energy who also does her own dishes. π
π¦ CONTEXT π¦
Any context. literally any. no restrictions, no dress code, go off. π
β RETURN β
0on success. π and listen β this is the only case where any decrypted or associated data can be used. like, only only. no exceptions, periodt.-EBADMSGif the message is inauthentic π β which means somebody's been messing with your data and you should absolutely not trust it.
fr fr: if you don't get 0 back, do not touch the decrypted data. that's the whole vibe check of this function.
π SEE ALSO π
Kernel file ./include/crypto/aes-ccm.h, plus the whole squad:
struct aes_ccm_key(9)struct aes_ccm_ctx(9)aes_ccm_preparekey(9)aes_ccm_encrypt(9)aes_ccm_decrypt(9)aes_ccm_init(9)aes_ccm_auth_update(9)aes_ccm_encrypt_update(9)aes_ccm_decrypt_update(9)aes_ccm_encrypt_final(9)
and that's the page, bestie π β brought to you by the fine folks over at ./include/crypto, dated October 2026. mwah, go decrypt something responsibly πβ¨
π¦ 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