STRUCT AEAD_REQUEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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