ocs_hcu_digest(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 of data. 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 of dgst. 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 🌈

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