ghash_preparekey(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ghash_preparekey(9) ✨

okay so real talk, this is a page straight out of the Kernel API Manual and it's literally about prepping a GHASH key πŸŽ€ no cap, it's a tiny one but it's iconic in its own lowkey way, so let's get into it bestie 🫢


🌸 NAME 🌸

ghash_preparekey β€” Prepare a GHASH key πŸ’–

like, that's the whole vibe. it prepares the key. it's giving preparation. periodt.


✨ SYNOPSIS ✨

void ghash_preparekey (struct ghash_key *key , const u8
raw_key[GHASH_BLOCK_SIZE] );

that's it, that's the signature 🫢 copy it exactly, don't be out here renaming things, i'm watching πŸ‘€


πŸŽ€ ARGUMENTS πŸŽ€

  • key β€” (output) the key structure you're gonna initialize πŸ’… it's the output bestie, so it comes back all filled in for you
  • raw_key β€” the raw hash key 🌸 the actual key material, handed to you as-is

πŸ¦‹ DESCRIPTION πŸ¦‹

Initialize a GHASH key structure from a raw key ✨

that's the whole thing. you hand it a raw key, it hands you back a nice initialized struct ghash_key. the way that it just works πŸ˜­πŸ‘‘


🌈 CONTEXT 🌈

Any context πŸ‘‘ ngl, that's the most chill context line i've ever seen. no locks, no special rules, no "you must be in interrupt context or the kernel will personally come for you" β€” just any context πŸ’š slay.


⭐ SEE ALSO ⭐

Kernel file ./include/crypto/gf128hash.h β€” go read it, it's where the family lives 🧚

that's the whole squad fr fr πŸ’œ


and that's a wrap bestie!! πŸŽ‰ this lil page lives over in ./include/crypto and it's stamped October 2026 β€” so yeah, mark your calendar, it's canon πŸ—“οΈπŸ’–

πŸ“¦ where this page comes from