aes_gcm_encrypt_update(9)
π aes_gcm_encrypt_update β a whole section 9 (kernel API) moment π
okay so bestie, welcome to aes_gcm_encrypt_update, straight out of the kernel API manual (section 9, we're in kernel land now, very main character of us). This is about incrementally encrypting data with AES-GCM β like, piece by piece, not all at once. Slay.
β¨ NAME β¨
aes_gcm_encrypt_update β incrementally encrypt data with AES-GCM. yes that's the whole name, it's giving "descriptive and unbothered" π
π¦ SYNOPSIS π¦
void aes_gcm_encrypt_update (struct aes_gcm_ctx *ctx , u8 *dst , const
u8 *src , size_t len );
like, look at her. returns void. doesn't even need to tell you if it worked. confident queen behavior π
π ARGUMENTS π
ctxβ An AES-GCM context. your lil state-holder bestie π«Άdstβ The destination buffer. Can be in-place or out-of-place. For other overlaps the behavior is unspecified. β οΈ so like, in-place: fine. out-of-place: fine. anything else: we literally cannot vouch for it, no cap.srcβ The source plaintext data. the untouched, un-encrypted original vibes πΈlenβ Number of bytes to encrypt. The caller must ensure that the total number of bytes encrypted doesn't exceed GCM's limit of2^36 - 32. π¨ that's the ceiling bestie, don't test it, nobody's built different enough for that.
π₯ DESCRIPTION π₯
This can be called only after all associated data has been processed. that's the vibe check β associated data first, encrypting after. the way that ordering is not optional π
π CONTEXT π
Any context. any. literally any. she's flexible like that π§
π SEE ALSO π
Kernel file ./include/crypto/aes-gcm.h and the whole friend group:
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_decrypt_update(9)aes_gcm_encrypt_final(9)aes_gcm_decrypt_final(9)
ok that's the whole page, go encrypt something incrementally, i'm obsessed with you π
and that's a wrap, bestie β this page lives in ./include/crypto, dated October 2026, and it was iconic from start to finish β¨ππ¦
π¦ 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