blake2s_init_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… blake2s_init_key(9) β€” like, the keyed BLAKE2s glow-up ✨

Bestie, welcome to the Kernel API Manual for blake2s_init_key. This is the call you make when you want a BLAKE2s context that's already keyed and ready to go β€” think of it as setting up your whole vibe before the message even shows up. πŸŽ€


🌸 NAME 🌸

blake2s_init_key β€” initialize a BLAKE2s context for a new message (keyed), fr fr.


✨ SYNOPSIS ✨

void blake2s_init_key (struct blake2s_ctx *ctx , size_t outlen , const
void *key , size_t keylen );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctx β€” the context you're initializing. This is the main character right here, the thing you're prepping. πŸ’–
  • outlen β€” how long your output hash value is, in bytes. Heads up: it's at most BLAKE2S_HASH_SIZE, so don't get too ambitious. πŸ™ˆ
  • key β€” the key itself. Yes, that key. πŸ”‘
  • keylen β€” the key's length in bytes, at most BLAKE2S_KEY_SIZE. Know your limits, bestie. πŸ’…

🌈 CONTEXT 🌈

Any context. Literally any. No gatekeeping here, we're not doing that. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/crypto/blake2s.h β€” the source of truth, iykyk πŸ“‚
  • struct blake2s_ctx(9) β€” the context struct itself, an icon ⭐
  • blake2s_init(9) β€” the unkeyed sibling 🧚
  • blake2s_update(9) β€” feed it your data πŸ“
  • blake2s_final(9) β€” wrap it up πŸ”₯
  • blake2s(9) β€” the whole fam πŸ’œ

Ngl bestie, make sure outlen stays <= BLAKE2S_HASH_SIZE and keylen stays <= BLAKE2S_KEY_SIZE. The page says "at most" for both, and we respect the limits. 😭

Signed, sealed, delivered: this one lives in ./include/crypto, dated October 2026. Periodt. πŸ’€βœ¨

πŸ“¦ where this page comes from