ocs_hcu_write_key(9)
π ocs_hcu_write_key(9) π
okay bestie, welcome to the ocs_hcu_write_key(9) page from the Kernel API Manual β section 9, no cap. This functionβs whole main character moment is getting a key into the OCS HMAC KEY registers. β¨
πΈ NAME πΈ
ocs_hcu_write_key β write a key to the OCS HMAC KEY registers, periodt.
β¨ SYNOPSIS β¨
Hereβs the signature, character-for-character, so donβt let the group chat edit it:
int ocs_hcu_write_key (struct ocs_hcu_dev *hcu_dev , const u8 *key , size_t len );
π ARGUMENTS π
hcu_devβ the OCS HCU device the key should be written to.keyβ the key to be written.lenβ the size of the key to write. It must beOCS_HCU_HW_KEY_LEN.
β οΈ bestie,lenis not vibes-based: it must beOCS_HCU_HW_KEY_LEN. no exceptions π
π₯ RETURN π₯
It returns 0 on success, and a negative error code otherwise. Thatβs the whole return mood. π
π¦ SEE ALSO π¦
Kernel file ./drivers/crypto/intel/keembay/ocs-hcu.c β and the whole reference squad:
struct ocs_hcu_dma_entry(9)struct ocs_hcu_dma_list(9)ocs_hcu_wait_busy(9)ocs_hcu_get_intermediate_data(9)ocs_hcu_set_intermediate_data(9)ocs_hcu_hw_cfg(9)ocs_hcu_clear_key(9)ocs_hcu_ll_dma_start(9)ocs_hcu_hash_init(9)ocs_hcu_hash_update(9)ocs_hcu_hash_finup(9)ocs_hcu_hash_final(9)ocs_hcu_digest(9)ocs_hcu_hmac(9)
Source/version: ./drivers/crypto/intel/keembay Β· date: October 2026 Β· page: ocs_hcu_write_key(9) β bye bestie, go slay that key π«Άβ¨
π¦ 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