STRUCT DTHE_AES_REQ_CTX(9)
πΈ NAME πΈ
okay so bestie, welcome to the Kernel API Manual entry for struct dthe_aes_req_ctx β literally the AES engine req ctx struct π
that's the whole name, that's the whole vibe, and yes it's a struct in the kernel API docs, iykyk. fr fr this is the little bundle of state the DTHEv2 AES engine carries around per request π
β¨ SYNOPSIS β¨
not me just dropping the whole struct, character for character, because you need it exactly like this π«Ά
struct dthe_aes_req_ctx {
int enc;
u8 padding[2 * AES_BLOCK_SIZE];
struct completion aes_compl;
};
π§ Members π§
okay so let's do a vibe check on every single field, no skipping, we don't do that here π
encβ this is the flag telling you whether we're doing an encryption or a decryption operation. that's it, that's the flag. lowkey iconic πpaddingβ a padding buffer whose whole job is handling unaligned data π yes it's there for the messy unaligned stuff, it's doing the lord's work tbh.aes_complβ the Completion variable, there for when you need to do a manual completion in case of a DMA callback failure π like if the DMA callback ghosts you, this is the thing that says "it's done bestie". highkey important.
π SEE ALSO π
go read these next, fr fr, they're all in ./drivers/crypto/ti/dthev2-common.h in the Kernel file πΈ:
struct dthe_data(9)struct dthe_list(9)struct dthe_tfm_ctx(9)dthe_copy_sg(9)
the way that this whole page lives at ./drivers/crypto/ti and is dated October 2026... main character energy β
and that's the page, bestie β shoutout to struct dthe_aes_req_ctx(9), source & version straight from ./drivers/crypto/ti, dated October 2026, slay, periodt π
π¦
π¦ 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