aead_gcm_esp_setkey(9)
π aead_gcm_esp_setkey(9) β the Kernel API Manual, but make it cute
Okay bestie, so this is a page straight out of the Kernel API Manual, and it's called aead_gcm_esp_setkey(9). It's the setkey() operation for the ESP variant of GCM AES. Lowkey a whole mouthful, but we move. π«Ά
β¨ NAME β¨
aead_gcm_esp_setkey β literally the setkey() operation for the ESP variant of GCM AES. That's it, that's the vibe. π
πΈ SYNOPSIS πΈ
int aead_gcm_esp_setkey (struct crypto_aead *cipher , const u8 *key ,
unsigned int keylen );
Short, sweet, returns an int. Slay. β¨
π ARGUMENTS π
cipherβ the AEAD structure. It's giving "main character" of this whole call, ngl.keyβ the key, followed by 4 bytes of salt. Yes, the salt is riding shotgun, don't separate them. π§keylenβ the length of the key plus the salt, in bytes. So it's not just the key length, bestie, it's the whole package. π
π¦ DESCRIPTION π¦
So what does it actually do? It extracts the salt from key and stores it, so that it can be prepended to the IV on each request. Iconic behaviour, honestly. π
And important detail incoming: the digest is always 16 bytes. No cap. π₯
β RETURN β
It returns the value from the generic gcm setkey. That's the whole tea. π
π SEE ALSO π
This is the part where the group chat gets long, so buckle up bestie β here's the full squad, all from the kernel file ./drivers/crypto/bcm/cipher.c:
select_channel(9)spu_skcipher_rx_sg_create(9)spu_skcipher_tx_sg_create(9)handle_skcipher_req(9)handle_skcipher_resp(9)spu_ahash_rx_sg_create(9)spu_ahash_tx_sg_create(9)handle_ahash_req(9)spu_hmac_outer_hash(9)ahash_req_done(9)handle_ahash_resp(9)spu_aead_rx_sg_create(9)spu_aead_tx_sg_create(9)handle_aead_req(9)handle_aead_resp(9)spu_chunk_cleanup(9)finish_req(9)spu_rx_callback(9)skcipher_enqueue(9)spu_no_incr_hash(9)rfc4543_gcm_esp_setkey(9)aead_ccm_esp_setkey(9)spu_functions_register(9)spu_mb_init(9)
All of them. Every single one. We don't skip entries in this house. π
Fr fr though, if you ever touchkeyandkeylen, remember they're a package deal β the salt is in there and it wants to be counted. π
And that's the page, babe! π This lil' beauty lives in ./drivers/crypto/bcm, dated October 2026, and it's your girl aead_gcm_esp_setkey(9) signing off. 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