sha512_final(9)
π 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:
struct sha224_ctx(9)sha224_init(9)sha224_update(9)sha224_final(9)sha224(9)struct hmac_sha224_key(9)struct hmac_sha224_ctx(9)hmac_sha224_preparekey(9)hmac_sha224_init(9)hmac_sha224_init_usingrawkey(9)hmac_sha224_update(9)hmac_sha224_final(9)hmac_sha224(9)hmac_sha224_usingrawkey(9)struct sha256_ctx(9)sha256_init(9)sha256_update(9)sha256_final(9)sha256(9)sha256_finup_2x(9)sha256_finup_2x_is_optimized(9)struct hmac_sha256_key(9)struct hmac_sha256_ctx(9)hmac_sha256_preparekey(9)hmac_sha256_init(9)hmac_sha256_init_usingrawkey(9)hmac_sha256_update(9)hmac_sha256_final(9)hmac_sha256(9)hmac_sha256_usingrawkey(9)struct sha384_ctx(9)sha384_init(9)sha384_update(9)sha384_final(9)sha384(9)struct hmac_sha384_key(9)struct hmac_sha384_ctx(9)hmac_sha384_preparekey(9)hmac_sha384_init(9)hmac_sha384_init_usingrawkey(9)hmac_sha384_update(9)hmac_sha384_final(9)hmac_sha384(9)hmac_sha384_usingrawkey(9)struct sha512_ctx(9)sha512_init(9)sha512_update(9)sha512(9)struct hmac_sha512_key(9)struct hmac_sha512_ctx(9)hmac_sha512_preparekey(9)hmac_sha512_init(9)hmac_sha512_init_usingrawkey(9)hmac_sha512_update(9)hmac_sha512_final(9)hmac_sha512(9)hmac_sha512_usingrawkey(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms