ocs_hcu_hash_update(9)
π« ocs_hcu_hash_update(9) π«
okay so bestie, welcome to the kernel API manual for ocs_hcu_hash_update β that's the OCS HCU one, section 9, straight out of the Kernel API Manual. she's a hashing queen and honestly? iconic.
β¨ NAME β¨
ocs_hcu_hash_update β literally just performs one hashing iteration. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
int ocs_hcu_hash_update (struct ocs_hcu_dev *hcu_dev , struct
ocs_hcu_hash_ctx *ctx , const struct ocs_hcu_dma_list *dma_list );
three args, one int coming back at you. slay. π
πΈ ARGUMENTS πΈ
hcu_devβ thestruct ocs_hcu_dev *pointing at the OCS HCU device you wanna use. like, which one of the devices, bestie. pick one. π«Άctxβ thestruct ocs_hcu_hash_ctx *, aka the OCS HCU hashing context. it's giving "the memory of what we're hashing so far." β¨dma_listβ theconst struct ocs_hcu_dma_list *that maps the input data to process. think of it as the map that tells the hardware where the actual bytes live. lowkey essential. πΊοΈ
π₯ RETURN π₯
0 on success, and a negative error code otherwise. no cap β success is literally zero and anything else means something went sideways. π
π SEE ALSO π
kernel file ./drivers/crypto/intel/keembay/ocs-hcu.c β yes, that's where all the lore lives π§
the whole friend group, in order:
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_write_key(9)ocs_hcu_ll_dma_start(9)ocs_hcu_hash_init(9)ocs_hcu_hash_finup(9)ocs_hcu_hash_final(9)ocs_hcu_digest(9)ocs_hcu_hmac(9)
ok that's the whole page π no skipped options, no deleted references, we keep every detail in this house. periodt.
sign-off time π this little masterpiece lives under ./drivers/crypto/intel/keembay, dated October 2026 β and it's page ocs_hcu_hash_update(9) of the Kernel API Manual. go hash something, bestie π
β¨π¦
π¦ 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