STRUCT CAAM_HASH_CTX(9)
π struct caam_hash_ctx(9) π
okay bestie, buckle up β this is a page from the Kernel API Manual, and it's literally all about struct caam_hash_ctx, which is the ahash per-session context. that's the whole vibe. per-session. ahash. context. slay π
β¨ NAME β¨
struct caam_hash_ctx β the ahash per-session context, no cap π«Ά
πΈ SYNOPSIS πΈ
here's the whole struct, copied exactly because we do not mess with code in this house:
struct caam_hash_ctx {
struct caam_flc flc[HASH_NUM_OP];
u8 key[CAAM_MAX_HASH_BLOCK_SIZE];
dma_addr_t flc_dma[HASH_NUM_OP];
struct device *dev;
int ctx_len;
struct alginfo adata;
};
π Members π
ok so these are the fields, and yes we're going through every single one because they all matter:
flcβ the Flow Contexts array. it's giving "array of flow contexts" and honestly? iconic β¨keyβ the authentication key π like, the actual key. keep it safe.flc_dmaβ the I/O virtual addresses of the Flow Contexts. yes, addresses, plural, it's an array too πdevβ the dpseci device. that's literally what it says, so that's what you get πctx_lenβ size of the Context Register. a length. for the context. very demure, very mindful.adataβ hashing algorithm details π§ the algorithm's whole little info packet
π¦ SEE ALSO π¦
- the Kernel file
./drivers/crypto/caam/caamalg_qi2.cβ go read it, iykyk π struct caam_ctx(9)β its cousin, also a struct, also important π
lowkey reminder bestie: this lives under ./drivers/crypto/caam in the kernel tree, so that's where you'll find the friends π
and that's the page!! brought to you by the fine folks at ./drivers/crypto/caam, dated October 2026 β mwah, go forth and hash 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