STRUCT BLAKE2S_CTX(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– NAME ๐Ÿ’–

Okay bestie, welcome to the struct blake2s_ctx(9) page in the Kernel API Manual โœจ and no cap, this one is short but iconic. <pink>struct blake2s_ctx` is literally the context for hashing a message with BLAKE2s โ€” thatโ€™s the whole vibe ๐Ÿ’…


โœจ SYNOPSIS โœจ

Hereโ€™s the struct in all its main-character glory โ€” copy it exactly, okay? ๐Ÿซถ

       struct blake2s_ctx {
           u32 h[8];
           u32 t[2];
           u32 f[2];
           u8 buf[BLAKE2S_BLOCK_SIZE];
           unsigned int buflen;
           unsigned int outlen;
        };

๐ŸŽ€ Members ๐ŸŽ€

  • h โ€” the compression function state, doing its lil internal glow-up โœจ
  • t โ€” the block counter, keeping track of blocks fr fr ๐Ÿงฎ
  • f โ€” the finalization indicator, aka the โ€œweโ€™re done hereโ€ flag vibe ๐Ÿ
  • buf โ€” the partial block buffer; buflen bytes are valid ๐Ÿ‘€
  • buflen โ€” number of bytes buffered in buf, periodt ๐Ÿ’…
  • outlen โ€” length of output hash value in bytes, at most BLAKE2S_HASH_SIZE ๐ŸŒธ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


okay thatโ€™s the whole page, bestie ๐Ÿ’– source/version: ./include/crypto; date: October 2026; title: struct blake2s_ctx(9). mwah ๐Ÿ’‹ byeee ๐Ÿซถ

๐Ÿ“ฆ where this page comes from