STRUCT SHA1_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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_SIZE bytes 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:


source/version line: ./include/crypto β€” dated October 2026 β€” for struct sha1_ctx(9). mwah πŸ’œπŸ«Ά

πŸ“¦ where this page comes from