aes_gcm_auth_update(9)
β¨ aes_gcm_auth_update(9) β¨
okay so like, welcome to the Kernel API Manual bestie π«Ά this one's about aes_gcm_auth_update from the manual page aes_gcm_auth_update(9) β yes the name's in the title AND the manual name, it's giving main character energy π
π NAME π
aes_gcm_auth_update β literally processes AES-GCM associated data incrementally, one little chunk at a time, no cap β¨
π¦ SYNOPSIS π¦
void aes_gcm_auth_update (struct aes_gcm_ctx *ctx , const u8 *ad ,
size_t len );
like, that's the whole signature. short and iconic π
πΈ ARGUMENTS πΈ
ctxβ an AES-GCM context. your lil working space, your vibe holder πadβ the associated data. yes, that's theadright there πlenβ number of bytes provided. and listen, the caller has to make sure the total associated data length doesn't exceed GCM's limit of2^61 - 1. that's a real number, respect it π₯
π DESCRIPTION π
IMPORTANT β οΈ (like, actually important, not just me being dramatic): callers MUST NOT assume that any decrypted or associated data is authentic until the authentication tag has been verified. periodt. don't trust it till the tag says so π
π CONTEXT π
Any context. literally any. we're flexible like that π β¨
π SEE ALSO π
Kernel file ./include/crypto/aes-gcm.h, plus the whole squad:
struct aes_gcm_key(9)struct aes_gcm_ctx(9)aes_gcm_preparekey(9)aes_gcm_encrypt(9)aes_gcm_decrypt(9)aes_gcm_init(9)aes_gcm_encrypt_update(9)aes_gcm_decrypt_update(9)aes_gcm_encrypt_final(9)aes_gcm_decrypt_final(9)
and that's the page bestie, iykyk π§π this came from ./include/crypto and it's dated October 2026, signed off with aes_gcm_auth_update(9) β slay, go verify that tag before you trust 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