blake2s(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ blake2s(9) β€” like, the Kernel API Manual page, bestie πŸ’œ

okay so real talk, this is a page from the Kernel API Manual, and it's about blake2s, which computes a BLAKE2s hash in one shot. no multi-step drama, no "call me back later" β€” you hand it everything at once and it hands you a hash. iconic behavior honestly 🫢


✨ NAME ✨

blake2s β€” Compute BLAKE2s hash in one shot. that's it, that's the whole vibe. one call, one hash, done. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void blake2s (const u8 *key , size_t keylen , const u8 *in , size_t
inlen , u8 *out , size_t outlen );

yes there are six arguments. no we're not scared. we're built different. πŸ”₯


🌸 ARGUMENTS 🌸

okay bestie, let's go through them one by one, no cap, all of them, no skipping:

  • key β€” the key, or NULL for an unkeyed hash. that's right, NULL is valid here, she's allowed to be single 😌
  • keylen β€” the key length in bytes (at most BLAKE2S_KEY_SIZE), or 0 for an unkeyed hash. see? 0 is also valid. she contains multitudes. πŸ’–
  • in β€” the message data. the actual thing you wanna hash. the main character, honestly. πŸ‘‘
  • inlen β€” the data length in bytes. gotta tell her how much message there is ✨
  • out β€” (output) the resulting BLAKE2s hash, with length outlen. this one's an output parameter, so she gets filled in for you. not you writing to her β€” her writing to you. slay. πŸŽ€
  • outlen β€” length of output hash value in bytes, at most BLAKE2S_HASH_SIZE. respect the ceiling, bestie, she has limits and they are literally documented πŸ™ˆ

🌈 CONTEXT 🌈

Any context. literally any. no restrictions, no prerequisites, no "only from interrupt context" weirdness. free spirit energy. πŸ¦‹βœ¨


πŸ’€ SEE ALSO πŸ’€

go read these next, i'm obsessed with a linked list of functions fr fr:

like... blake2s is the one-shot girlie, but if you want the incremental journey, that whole init β†’ update β†’ final trio is right there waiting for you. iykyk 🌸


okay that's the whole page, you ate that πŸ’…

this little cutie lives under ./include/crypto and was dated October 2026 β€” so like, mark your calendars bestie, and remember: one shot, six args, any context. periodt. πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from