rfc4543_gcm_esp_setkey(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rfc4543_gcm_esp_setkey(9) β€” like, the kernel API manual bestie

okay so this one lives in section 9 of the Kernel API Manual, and it's literally the setkey operation for the RFC4543 variant of GCM/GMAC. yes, that's a lot of acronyms, but stay with me 🫢


✨ SYNOPSIS ✨

int rfc4543_gcm_esp_setkey (struct crypto_aead *cipher , const u8 *key ,
unsigned int keylen );

πŸŽ€ ARGUMENTS πŸŽ€

  • cipher β€” the AEAD structure, aka the main character of this whole function πŸŽ€
  • key β€” the key, followed by 4 bytes of salt. yes bestie, the salt is riding along in the same buffer, iykyk
  • keylen β€” length of the key plus the salt, counted in bytes. so don't forget to add those 4 salt bytes in there fr fr πŸ§‚

πŸ’– DESCRIPTION πŸ’–

so what it does is: it extracts the salt from the key and stores it, so that salt can get prepended to the IV on every single request. and the digest? always 16 bytes. no cap, always 16 πŸ’…

πŸ”₯ RETURN πŸ”₯

it returns the value from the generic gcm setkey. that's it, that's the return πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/crypto/bcm/cipher.c β€” and honestly the whole friend group showed up for this one:


that's the whole page bestie, go set some keys πŸ’…βœ¨

sign-off szn: this lil icon comes from the source <purple>./drivers/crypto/bcm</purple>, dated <cyan>October 2026</cyan>, and it's out here living its best life as rfc4543_gcm_esp_setkey(9)`. periodt πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from