aes_ccm_auth_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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