dthe_aead_prep_aad(9)
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 πΈ
- Kernel file
./drivers/crypto/ti/dthev2-aes.c dthe_aead_prep_crypt(9)
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
- 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