blake2s_init_key(9)
π 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 mostBLAKE2S_HASH_SIZE, so don't get too ambitious. πkeyβ the key itself. Yes, that key. πkeylenβ the key's length in bytes, at mostBLAKE2S_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 sureoutlenstays<=BLAKE2S_HASH_SIZEandkeylenstays<=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
- 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