STRUCT OCS_HCU_CTX(9)
π 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β aboolthat says whether or not this is an SM3 transformation. yes-or-no vibes only πis_hmac_tfmβ aboolthat 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
- 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