STRUCT SHA1_CTX(9)
π struct sha1_ctx π
okay so this is the struct sha1_ctx(9) page from the Kernel API Manual, and itβs literally the context for hashing a message with SHA-1 π
πΈ NAME πΈ
struct sha1_ctx β Context for hashing a message with SHA-1. periodt.
β¨ SYNOPSIS β¨
the literal shape, bestie:
struct sha1_ctx {
struct sha1_block_state state;
u64 bytecount;
u8 buf[SHA1_BLOCK_SIZE];
};
π Members π
stateβ the compression function state. iconic.bytecountβ number of bytes processed so far. keeping count, no cap.bufβ partial block buffer;bytecount % SHA1_BLOCK_SIZEbytes are valid. the remaining bytes are just vibing in the buffer.
π₯ SEE ALSO π₯
Kernel file ./include/crypto/sha1.h is the spot, and these linked besties are all here:
sha1_init(9)sha1_update(9)sha1_final(9)sha1(9)struct hmac_sha1_key(9)struct hmac_sha1_ctx(9)hmac_sha1_preparekey(9)hmac_sha1_init(9)hmac_sha1_init_usingrawkey(9)hmac_sha1_update(9)hmac_sha1_final(9)hmac_sha1(9)hmac_sha1_usingrawkey(9)
source/version line: ./include/crypto β dated October 2026 β for struct sha1_ctx(9). mwah ππ«Ά
π¦ 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