aes_gcm_decrypt_update(9)
π aes_gcm_decrypt_update(9) π
okay so welcome to the aes_gcm_decrypt_update(9) page in the Kernel API Manual β this one is all about incrementally decrypting data with AES-GCM, and yes bestie, the security caveat is very much the main character here. π«Ά
β¨ NAME β¨
aes_gcm_decrypt_update β Incrementally decrypt data with AES-GCM π
π SYNOPSIS π
void aes_gcm_decrypt_update (struct aes_gcm_ctx *ctx , u8 *dst , const
u8 *src , size_t len );
π«Ά ARGUMENTS π«Ά
ctxβ An AES-GCM context. literally the context bestie, it's giving "you need this" energy.dstβ The destination buffer. Can be in-place or out-of-place. For other overlaps the behavior is unspecified β so like, don't get creative with overlapping buffers unless it's one of those two, mwah. πsrcβ The source ciphertext data (not including auth tag). no tag in here, keep it out. πlenβ Number of bytes to decrypt. The caller must ensure that the total number of bytes decrypted doesn't exceed GCM's limit of2^36 - 32. yes, that exact limit, no cap. π€
πΈ DESCRIPTION πΈ
This can be called only after all associated data has been processed. like, that's the prerequisite, bestie, don't skip it. β¨
IMPORTANT: Callers MUST NOT assume that any decrypted or associated data is authentic until the authentication tag has been verified. π¨
that is the whole vibe check, fr fr: no data is "authentic" until that authentication tag is verified. do not be trusting plaintext early, it's not the moment. π
π¦ CONTEXT π¦
Any context. any context, bestie β iconic flexibility. π
π SEE ALSO π
- Kernel file
./include/crypto/aes-gcm.h 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_auth_update(9)aes_gcm_encrypt_update(9)aes_gcm_encrypt_final(9)aes_gcm_decrypt_final(9)
that's the page, bestie π«Ά β source/version is ./include/crypto, dated October 2026, and it's the aes_gcm_decrypt_update(9) page. periodt. π
π¦ 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