aes_ccm_auth_update(9)
π NAME π
Okay so bestie, this is aes_ccm_auth_update(9) from the Kernel API Manual, and it is literally the function for incrementally processing AES-CCM associated data. Slay. β¨
β¨ SYNOPSIS β¨
void aes_ccm_auth_update (struct aes_ccm_ctx *ctx , const u8 *ad ,
size_t len );
π ARGUMENTS π
ctxβ an AES-CCM context. Your main-character struct. πadβ the associated data. Yes, the actual associated-data bits. πlenβ length of the associated data in bytes. A number, bestie. πΈ
π DESCRIPTION π
Okay, listen up, because this is the part where you do not get to vibe-check your way past the rules:
IMPORTANT: Callers MUST NOT assume that any decrypted or associated data is authentic until the authentication tag has been verified.
Periodt. Do not trust the data until the tag says yes. π
Also: the total length of the associated data (over all calls to this function) MUST match the ad_len that was passed to aes_ccm_init. Not βroughly match.β Not βmatch if you feel like it.β MUST. Match. π«Ά
π CONTEXT π
Any context. Thatβs it. Thatβs the context rule. Literally any. π
π¦ SEE ALSO π¦
Kernel file ./include/crypto/aes-ccm.h β yes, that exact path, bestie β plus the whole friend group:
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_encrypt_update(9)aes_ccm_decrypt_update(9)aes_ccm_encrypt_final(9)aes_ccm_decrypt_final(9)
Okay thatβs the whole page, bestie. This one lives under ./include/crypto and the date/version vibe is October 2026. Now go verify that authentication tag before you trust literally anything. Mwah ππ«Ά
π¦ 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