STRUCT BLAKE2B_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct blake2b_ctx(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for struct blake2b_ctx(9) β€” yes, the (9) is giving kernel-section energy, and we're about to make this struct make sense. no cap. πŸ’–


✨ NAME ✨

struct blake2b_ctx β€” context for hashing a message with BLAKE2b. that's the whole vibe: it's the little state basket you carry around while BLAKE2b does its thing. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole struct, bestie β€” every field exactly where it lives:

struct blake2b_ctx {
    u64 h[8];
    u64 t[2];
    u64 f[2];
    u8 buf[BLAKE2B_BLOCK_SIZE];
    unsigned int buflen;
    unsigned int outlen;
};

no mystery, just the struct layout. πŸ’…


🌸 Members 🌸

  • h β€” compression function state. the main-character state, lowkey.
  • t β€” block counter. it's counting blocks, periodt.
  • f β€” finalization indicator. tells you we're at the finalization moment, iykyk.
  • buf β€” partial block buffer; buflen bytes are valid. so it's the holding spot for a partial block, and only buflen bytes in there are valid.
  • buflen β€” number of bytes buffered in buf. exactly what it says, no cap.
  • outlen β€” length of output hash value in bytes, at most BLAKE2B_HASH_SIZE. so it's the output size, and it cannot exceed BLAKE2B_HASH_SIZE. 🫢

🌈 SEE ALSO 🌈

go look at these besties, fr fr:


that's the whole page, bestie πŸ’– β€” source/version vibe: ./include/crypto, dated October 2026, for struct blake2b_ctx(9). mwah, go hash something slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from