STRUCT AEAD_REQUEST(9)
πΈ struct aead_request(9) πΈ
okay bestie, so this page lives in the Kernel API Manual and it's literally all about the AEAD request struct π it's short, it's sweet, and it's the thing every async AEAD operation is built around. let's get into it π«Ά
β¨ NAME β¨
struct aead_request β an AEAD request, no cap π
β¨ SYNOPSIS β¨
here's the whole vibe, character for character:
struct aead_request {
struct crypto_async_request base;
unsigned int assoclen;
unsigned int cryptlen;
u8 *iv;
struct scatterlist *src;
struct scatterlist *dst;
void *__ctx[];
};
π Members π
okay now the member-by-member breakdown, this is the main character energy part β
baseβ the common attributes for async crypto requests. it's the shared foundation, everyone's got one πassoclenβ length in bytes of the associated data for authentication. so how much of your extra authenticated-only data there is, like, in bytes π₯cryptlenβ length of the data that's actually gonna be encrypted or decrypted. the real crypto payload length, periodt πivβ the initialisation vector. yes bestie, the IV, it matters π¦srcβ source data πΈdstβ destination data π__ctxβ start of the private context data. this is where the driver-private stuff begins, iykyk π
π SEE ALSO π
go look at these next, they're all linked up and lowkey essential:
Kernel file ./include/crypto/aead.h β Authenticated Encryption With Associated Data (AEAD) Cipher API(9), struct aead_alg(9), crypto_alloc_aead(9), crypto_free_aead(9), crypto_has_aead(9), crypto_aead_ivsize(9), crypto_aead_authsize(9), crypto_aead_blocksize(9), crypto_aead_setkey(9), crypto_aead_setauthsize(9), crypto_aead_encrypt(9), crypto_aead_decrypt(9), Asynchronous AEAD Request Handle(9), crypto_aead_reqsize(9), aead_request_set_tfm(9), aead_request_alloc(9), aead_request_free(9), aead_request_set_callback(9), aead_request_set_crypt(9), aead_request_set_ad(9)
okay that's the whole page bestie, mwah π and for the cute sign-off: this one comes from ./include/crypto and it's dated October 2026 β so yeah, fresh, iconic, that's the source and version, we stan π§β¨π
π¦ 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