STRUCT BLAKE2B_CTX(9)
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;buflenbytes are valid. so it's the holding spot for a partial block, and onlybuflenbytes in there are valid.buflenβ number of bytes buffered inbuf. exactly what it says, no cap.outlenβ length of output hash value in bytes, at mostBLAKE2B_HASH_SIZE. so it's the output size, and it cannot exceedBLAKE2B_HASH_SIZE. π«Ά
π SEE ALSO π
go look at these besties, fr fr:
- Kernel file
./include/crypto/blake2b.h blake2b_init(9)blake2b_init_key(9)blake2b_update(9)blake2b_final(9)blake2b(9)
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
- 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