hmac_sha256_final(9)
π hmac_sha256_final(9) β like, the finale of your HMAC-SHA256 era
okay so this is a page from the Kernel API Manual bestie, and it's about the very last step of an HMAC-SHA256 computation. It's short, it's sweet, and it literally cleans up after itself. main character energy fr fr π
β¨ NAME β¨
hmac_sha256_final β finish computing an HMAC-SHA256 value. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
void hmac_sha256_final (struct hmac_sha256_ctx *ctx , u8 out[static
SHA256_DIGEST_SIZE] );
no cap, that's the whole signature. look at it. iconic. β¨
π¦ ARGUMENTS π¦
ctxβ the HMAC context you're about to finalize. β οΈ heads up: it must have been initialized first, bestie, like you cannot skip that step, that's not a vibe.outβ (output) the resulting HMAC-SHA256 value lands here. this is where the good stuff goes π
π DESCRIPTION π
so after it's done finishing, this function zeroizes ctx. like, it scrubs it clean, poof, gone π«Ά which means the caller does not need to do it β that's you, you don't have to. it already ate. it already cleaned up. periodt.
π CONTEXT π
Any context. literally any. no restrictions, we love a flexible icon πβ¨
π₯ SEE ALSO π₯
bestie there is a lot here and I'm not skipping a single one, we don't do that here π
Kernel file ./include/crypto/sha2.h
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(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_final(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)
π§ and that's the whole page!! go forth and finalize your HMACs, you gorgeous kernel dev π β¨
this lil beauty lives in ./include/crypto, it's the October 2026 edition of the Kernel API Manual, and yes hmac_sha256_final(9) is right there in the corner being all official π slay, bye!!
π¦ 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