ocs_hcu_digest(9)
π ocs_hcu_digest(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for ocs_hcu_digest, and it's literally the "compute me a hash digest" function. no cap, it's giving crypto-core and we're obsessed π
β¨ NAME β¨
ocs_hcu_digest β Compute hash digest. that's it, that's the whole name section, and honestly? iconic. π«Ά
πΈ SYNOPSIS πΈ
int ocs_hcu_digest (struct ocs_hcu_dev *hcu_dev , enum ocs_hcu_algo algo
, void *data , size_t data_len , u8 *dgst , size_t dgst_len );
yes the spacing is exactly like that, do not come for me, I don't make the rules π§
π ARGUMENTS π
hcu_devβ the OCS HCU device you wanna use. main character energy, everything happens through them π¦algoβ the hash algorithm to use. pick your fighter β¨dataβ the input data to process, the raw material, the moment before the glow-up π«data_lenβ the length ofdata. gotta know how much we're working with πdgstβ the buffer where the computed digest gets saved. this is the reveal, the big finale πdgst_lenβ the length ofdgst. yes, we respect buffer boundaries in this house π
β RETURN β
0 on success; negative error code otherwise. so like, 0 = slay, anything negative = not slay, check your errno vibes ππ₯
π SEE ALSO π
- the Kernel file
./drivers/crypto/intel/keembay/ocs-hcu.c 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_update(9)ocs_hcu_hash_finup(9)ocs_hcu_hash_final(9)ocs_hcu_hmac(9)
like, read them all, they're the friend group, the whole squad, iykyk ππ
aaaand that's the page!! brought to you with love from ./drivers/crypto/intel/keembay, timestamped October 2026, still answering to ocs_hcu_digest(9) the way it always has. go forth and hash 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