sha512_final(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sha512_final(9) πŸ’…

okay so this is a page from the Kernel API Manual, and today's main character is sha512_final(9). buckle up bestie, it's short but it slays πŸŽ€


✨ NAME ✨

sha512_final β€” finish computing a SHA-512 message digest 🧚


🌸 SYNOPSIS 🌸

void sha512_final (struct sha512_ctx *ctx , u8 out[static
       SHA512_DIGEST_SIZE] );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the context to finalize. it must have been initialized already, no cap β€” if you didn't init it first, that's on you, not me πŸ™ˆ
  • out β€” (output) the resulting SHA-512 message digest πŸ’– this is where the good stuff lands.

πŸ”₯ DESCRIPTION πŸ”₯

so after it finishes doing its thing, this function zeroizes ctx. literally wipes it. and because of that, the caller does not need to do it themselves β€” it's giving "I already handled it, you're welcome" ✨ periodt.


πŸ‘‘ CONTEXT πŸ‘‘

Any context. that's it. any. context. we love a flexible icon 🌈


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/crypto/sha2.h plus, like, the whole extended universe of crypto friends 🫢 β€” every single one of them:

like I said. the whole family reunion πŸ˜­πŸ’€


ngl the zeroize thing is the moment to remember β€” ctx gets wiped after this call, so don't come back looking for its data later, it's gone gone πŸ’…

okay that's the whole page, you ate that πŸ“ this cutie came out of ./include/crypto and it's dated October 2026 β€” go forth and hash, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from