STRUCT CAAM_HASH_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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