crypto_shash_finup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ crypto_shash_finup(9) ✨

Okay bestie, welcome to the Kernel API Manual β€” we're looking at crypto_shash_finup(9) today and honestly? It's giving "one function to rule them all." πŸ’…

🌸 NAME 🌸

crypto_shash_finup β€” calculate the message digest of a buffer, the shortcut way πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ’– ARGUMENTS πŸ’–

  • desc β€” no thoughts, head empty, just go read crypto_shash_final for the deets ✨
  • data β€” bestie, this one's explained over in crypto_shash_update
  • len β€” same situation, crypto_shash_update has you covered
  • out β€” and this one? crypto_shash_final, periodt πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

So here's the vibe: this function is literally a "short-hand" for calling crypto_shash_update and then crypto_shash_final. That's it, that's the whole personality. 🌈

The parameters mean exactly the same thing as they do for those two separate functions β€” same meanings, same energy, just fewer lines of code on your end. Not me being efficient with my life πŸ˜­πŸ‘‘

πŸ’€ CONTEXT πŸ’€

Softirq or process context. That's the whole vibe check. 🫢

⭐ RETURN ⭐

  • 0 β€” the message digest creation was successful, slay πŸŽ‰
  • < 0 β€” an error happened, sad girl hours πŸ™ˆ

🧚 SEE ALSO 🧚


that's the whole page bestie, go forth and hash πŸ’œ

This lil masterpiece lives in ./include/crypto and it's stamped October 2026 β€” page crypto_shash_finup(9), signing off πŸŽ€βœ¨

πŸ“¦ where this page comes from