dthe_aead_prep_aad(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is dthe_aead_prep_aad(9) from the Kernel API Manual β€” a whole lil function page about prepping your AAD scatterlist, and it's giving β€œhandle the boring bits so your DMA setup stays cute” energy ✨

✨ NAME ✨

dthe_aead_prep_aad β€” Prepare AAD scatterlist from input request. periodt πŸ’…

🫢 SYNOPSIS 🫢

struct scatterlist * dthe_aead_prep_aad (struct scatterlist *sg ,
       unsigned int assoclen , u8 *pad_buf );

πŸ’… ARGUMENTS πŸ’…

  • sg β€” Input scatterlist containing AAD. this is the one carrying the AAD, bestie πŸŽ€
  • assoclen β€” Length of AAD. yes, the actual length, not a vibe check.
  • pad_buf β€” Buffer to hold AAD padding if needed. it's the padding backup plan 🌸

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea: this creates a scatterlist containing only the AAD portion, with padding to align to AES_BLOCK_SIZE. it simplifies DMA handling by allowing AAD to be sent separately via TX-only DMA. that's the whole flex β€” clean AAD separation, DMA handled separately, no extra lore πŸ’–

πŸ”₯ RETURN πŸ”₯

Pointer to the AAD scatterlist, or ERR_PTR(error) on failure. and bestie, listen: the calling function needs to free the returned scatterlist when done. don't ghost that cleanup, fr fr πŸ™ˆ

⚠️ cleanup check: the calling function needs to free the returned scatterlist when done. no cap, that's important.

🌸 SEE ALSO 🌸


mwah πŸ’‹ this page is from ./drivers/crypto/ti, dated October 2026, and it's the dthe_aead_prep_aad(9) manual page β€” slay, go prep those AADs responsibly 🌈✨

πŸ“¦ where this page comes from