ocs_hcu_get...mediate_data(9)
โจ ocs_hcu_get_intermediate_data โ get intermediate data, bestie โจ
Okay so real quick before we dive in: this lil page lives in the Kernel API Manual (that's the manual name, cute right?), and the page itself is ocs_hcu_get...mediate_data(9) โ yes the header truncates it, she's just being dramatic, the actual function is ocs_hcu_get_intermediate_data ๐
๐ธ NAME ๐ธ
ocs_hcu_get_intermediate_data โ literally just get intermediate data ๐
๐ฆ SYNOPSIS ๐ฆ
int ocs_hcu_get_intermediate_data (struct ocs_hcu_dev *hcu_dev , struct
ocs_hcu_idata *data , enum ocs_hcu_algo algo );
She returns an int, she takes three things, she slays. Periodt ๐
๐ ARGUMENTS ๐
hcu_devโ the target HCU device ๐ฅ๏ธ like, the one we're actually talking to.dataโ where to store the intermediate ๐๏ธ this is the lil container it goes into.algoโ the algorithm being used ๐งฎ so she knows which one we're running.
๐ฅ DESCRIPTION ๐ฅ
So the whole vibe of this function is: it saves the current hashing process state, so you can pick it back up later ๐ no cap, that's the entire point. It's giving "pause and resume, but for hashing" โธ๏ธโถ๏ธ
โญ NOTE โญ
Bestie, listen, this is important ๐ once all the data has been processed, the intermediate data actually contains the hashing result. So this same function is also how you retrieve the final result of a hashing process ๐ like, one function, two jobs, she's multitasking and we love her for it ๐ซถ
๐ RETURN ๐
0on success ๐ (iconic)- negative error code otherwise ๐ญ (not iconic)
๐ SEE ALSO ๐
Kernel file ./drivers/crypto/intel/keembay/ocs-hcu.c โ go read her, she's got lore ๐
- struct
ocs_hcu_dma_entry(9) - struct
ocs_hcu_dma_list(9) ocs_hcu_wait_busy(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_digest(9)ocs_hcu_hmac(9)
๐ okay that's the whole page, mwah ๐
This lil gem lives over at ./drivers/crypto/intel/keembay, dated October 2026, and her full fancy title is ocs_hcu_get...mediate_data(9) โ write it down bestie, it's giving iykyk ๐
โจ๐
๐ฆ 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