sm3_final(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ‘‘

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