crypto_shash_digest(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_shash_digest(9) β€” like, the Kernel API Manual entry, but make it make sense

okay so before we even start: this is crypto_shash_digest, and it lives in the Kernel API Manual. yes, that Kernel API Manual. we're doing kernel crypto today bestie, put your hair up πŸŽ€


✨ NAME ✨

crypto_shash_digest β€” calculate the message digest for a buffer

like, you hand it a buffer, it hands you back a digest. that's the whole vibe. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

int crypto_shash_digest (struct shash_desc *desc , const u8 *data ,
unsigned int len , u8 *out );

🧚 ARGUMENTS 🧚

  • desc β€” bestie, this one's a "see crypto_shash_final" situation. the docs are literally pointing you there, so go look πŸ‘€
  • data β€” and this one says see crypto_shash_update. yes, same energy.
  • len β€” also see crypto_shash_update. it's giving "refer to the group chat for context" honestly πŸ™ˆ
  • out β€” and we're back to see crypto_shash_final. full circle, iconic.

πŸ’– DESCRIPTION πŸ’–

so this function is a "short-hand" for calling crypto_shash_init, crypto_shash_update, and crypto_shash_final. that's it. that's the tea. it literally just bundles all three so you don't have to write them out yourself β€” main character energy for the lazy girlies 🫢

and the parameters? they mean exactly the same thing as they do for those three separate functions. same meaning, no plot twist, no surprises. slay. ✨


πŸ”₯ CONTEXT πŸ”₯

softirq or process context. those are the only two vibes allowed here πŸ’…


⭐ RETURN ⭐

  • 0 if the message digest creation was successful πŸŽ‰
  • < 0 if an error occurred 😭

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the long part, stay with me, we're getting through the whole list because nobody gets left behind:

like I said. the whole list. we ate that πŸ’€πŸ”₯


ngl this page is short but she's efficient. a true icon. go read crypto_shash_init, crypto_shash_update, and crypto_shash_final if you want the full lore β€” iykyk πŸ§šβ€β™€οΈ

okay that's it, that's the manual page, you're literally a shash expert now, so proud of you πŸ’œ anyway, this little number comes from ./include/crypto and it's dated October 2026 β€” mwah, catch you in the next manpage bestie πŸ˜­πŸŽ€πŸ’–

πŸ“¦ where this page comes from