sm3_final(9)
π NAME π
sm3_final β bestie, this is the function that finishes computing an SM3 message digest. We're in the Kernel API Manual btw, and this page is sm3_final(9) β¨
πΈ SYNOPSIS πΈ
void sm3_final (struct sm3_ctx *ctx , u8 out[static SM3_DIGEST_SIZE] );
π ARGUMENTS π
ctxβ the context to finalize, and bestie it must have been initialized first, no cap. πoutβ (output) the resulting SM3 message digest. This is where the digest lands. π«Ά
π¦ DESCRIPTION π¦
Okay so after finishing, this zeroizes ctx. That means the caller does not need to do it themselves β it's already handled. periodt. π
β¨ CONTEXT β¨
Any context. Literally any context. π
π SEE ALSO π
- Kernel file
./include/crypto/sm3.h struct sm3_ctx(9)sm3_init(9)sm3_update(9)sm3(9)
the way this ties into the rest of the SM3 crew π§
cute sign-off: this page lives in ./include/crypto, dated October 2026, and it's the sm3_final(9) page. mwah πβ¨
π¦ 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