blake2s(9)
π 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, orNULLfor an unkeyed hash. that's right,NULLis valid here, she's allowed to be single πkeylenβ the key length in bytes (at mostBLAKE2S_KEY_SIZE), or0for an unkeyed hash. see?0is 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 lengthoutlen. 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 mostBLAKE2S_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:
- Kernel file
./include/crypto/blake2s.h struct blake2s_ctx(9)blake2s_init(9)blake2s_init_key(9)blake2s_update(9)blake2s_final(9)
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
- 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