ghash_final(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay bestie, this is ghash_final(9) from the Kernel API Manual, and its whole job is: finish computing a GHASH value. That's it. That's the assignment. πŸ’…βœ¨


🌸 SYNOPSIS 🌸

void ghash_final (struct ghash_ctx *ctx , u8 out[GHASH_BLOCK_SIZE] );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the context you're finalizing, bestie. 🫢
  • out β€” the output value. That's where the final result goes. πŸ’–

✨ DESCRIPTION ✨

So here's the vibe: if the total data length isn't a multiple of GHASH_BLOCK_SIZE, then the final block is automatically zero-padded. No cap, it just handles that for you. 🧚

After it finishes, this zeroizes ctx. So the caller does not need to do it. Like, don't double-zero, bestie β€” it's already done. πŸ™ˆ


πŸ’œ CONTEXT πŸ’œ

Any context. Periodt. ✨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file first: ./include/crypto/gf128hash.h β€” and then these iconic little references:


mwah πŸ’‹ β€” this cutie lives in ./include/crypto, dated October 2026. Slay. πŸŽ€πŸ’–

πŸ“¦ where this page comes from