STRUCT OCS_HCU_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ocs_hcu_ctx(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a little struct called struct ocs_hcu_ctx, and honestly? it's giving OCS HCU Transform context energy. that's the whole vibe. no cap. πŸ¦‹


✨ NAME ✨

struct ocs_hcu_ctx β€” the OCS HCU Transform context. that's it, that's the name, slay πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole glow-up, laid out exactly like this:

struct ocs_hcu_ctx {
    struct ocs_hcu_dev *hcu_dev;
    u8 key[SHA512_BLOCK_SIZE];
    size_t key_len;
    bool is_sm3_tfm;
    bool is_hmac_tfm;
 };

like, look at her. five members. main character struct fr fr πŸ‘‘


🌸 Members 🌸

  • hcu_dev β€” the OCS HCU device that this transformation is using. she's the hardware bestie doing the actual work πŸ’–
  • key β€” the key πŸ”‘ and heads up: it's only used for HMAC transformations. so if you're not doing HMAC, this field is just chilling there, decorative, living its truth πŸ™ˆ
  • key_len β€” the length</... wait no, the length of the key. one job. she does it. periodt πŸ’…
  • is_sm3_tfm β€” a bool that says whether or not this is an SM3 transformation. yes-or-no vibes only 🌈
  • is_hmac_tfm β€” a bool that says whether or not this is a HMAC transformation. also yes-or-no. also iconic. ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

go look at these, iykyk πŸ‘€:

  • Kernel file ./drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
  • struct ocs_hcu_rctx(9)
  • struct ocs_hcu_drv(9)

ngl bestie, read the actual source before you go poking at these fields β€” the manpage gives you the map, not the whole treasure chest 🫢

okay that's the whole page!! mwah πŸ’‹ this little beauty lives over in ./drivers/crypto/intel/keembay, dated October 2026, and she answers to the name struct ocs_hcu_ctx(9). go forth and be a crypto icon πŸ”₯πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from