ocs_hcu_hash_finup(9)
π ocs_hcu_hash_finup (9) β Kernel API Manual β¨
okay so bestie, welcome to the ocs_hcu_hash_finup page π
this lil function lives in the Kernel API Manual, and it's literally the β¨grand finaleβ¨ move β it updates and finalizes your hash computation in one go. two jobs, one function, main character energy fr fr π
πΈ NAME πΈ
ocs_hcu_hash_finup β update and finalize hash computation, bestie π
π¦ SYNOPSIS π¦
int ocs_hcu_hash_finup (struct ocs_hcu_dev *hcu_dev , const struct
ocs_hcu_hash_ctx *ctx , const struct ocs_hcu_dma_list *dma_list , u8
*dgst , size_t dgst_len );
like, look at all those params π she's got range, no cap π«Ά
π ARGUMENTS π
hcu_devβ the OCS HCU device you wanna use. that's your girl πctxβ the OCS HCU hashing context. she'sconst, so hands off πdma_listβ the OCS DMA list that maps the input data you're processing. alsoconst, also hands off β¨dgstβ the buffer where you save the computed digest. this is the glow-up destination πdgst_lenβ the length ofdgst. gotta know how much room you've got, iykyk π
β RETURN β
0 on success π₯³ β and if things go sideways, a negative error code instead. not me getting a negative error code ππ
π SEE ALSO π
Kernel file ./drivers/crypto/intel/keembay/ocs-hcu.c plus the whole squad, periodt π
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_final(9)ocs_hcu_digest(9)ocs_hcu_hmac(9)
ok that's the whole page bestie, go forth and hash responsibly π§ββοΈπ
and finally, the cute lil sign-off: this one's from ./drivers/crypto/intel/keembay, dated October 2026 πΈ catch you on the flip side, ocs_hcu_hash_finup(9) out π
π¦ 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