STRUCT CAAM_CTX(9)
π struct caam_ctx(9) π
okay bestie, welcome to the Kernel API Manual β this one's a struct page, she's a little technical but we're gonna slay it together π«Ά
β¨ NAME β¨
struct caam_ctx β the per-session context, aka the little vibe-holder that keeps track of one crypto session's whole situation π
πΈ SYNOPSIS πΈ
struct caam_ctx {
struct caam_flc flc[NUM_OP];
u8 key[CAAM_MAX_KEY_SIZE];
dma_addr_t flc_dma[NUM_OP];
dma_addr_t key_dma;
enum dma_data_direction dir;
struct device *dev;
struct alginfo adata;
struct alginfo cdata;
unsigned int authsize;
bool xts_key_fallback;
struct crypto_skcipher *fallback;
};
like, look at her. every field is doing something. main character struct energy fr fr π
π Members π
flcβ the Flow Contexts array. plural, she contains multitudes β¨keyβ the[authentication key], encryption key. yes both, she's versatile πflc_dmaβ I/O virtual addresses of the Flow Contexts π¦key_dmaβ the I/O virtual address of the key πdirβ DMA direction used for mapping the key and the Flow Contexts π§devβ thedpsecidevice π₯οΈadataβ authentication algorithm details πΈcdataβ encryption algorithm details πauthsizeβ authentication tag size, a.k.a. the ICV / MAC size πxts_key_fallbackβtrueif a fallback tfm needs to be used because the xts key lengths aren't supported π (yes, it's a whole thing)fallbackβ the xts fallback tfm π«Ά
ngl bestie, if you're poking at xts_key_fallback you already know what you're doing β that flag only flips when the xts key lengths just aren't supported and the fallback tfm has to step in π
π¦ SEE ALSO π¦
- Kernel file
./drivers/crypto/caam/caamalg_qi2.c struct caam_hash_ctx(9)β her cousin, go say hi π
and that's the whole page, bestie!! πβπ this iconic little number lives over at ./drivers/crypto/caam, dated October 2026, and yes the manual name is struct caam_ctx(9) β same as the title, she's consistent like that π
β¨π go forth and map those DMA addresses π¦πΈ
π¦ 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