ocs_hcu_hash_finup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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's const, so hands off πŸ™ˆ
  • dma_list β€” the OCS DMA list that maps the input data you're processing. also const, also hands off ✨
  • dgst β€” the buffer where you save the computed digest. this is the glow-up destination πŸ’…
  • dgst_len β€” the length of dgst. 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 πŸ‘‘


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