libhasha 2.2.2
Loading...
Searching...
No Matches
ha_sha1_context Struct Reference

SHA-1 context structure used to store the internal state during hashing. More...

#include <sha1.h>

Public Attributes

uint32_t state [5]
uint64_t bit_count
uint8_t buffer [HA_SHA1_BLOCK_SIZE]

Detailed Description

SHA-1 context structure used to store the internal state during hashing.

This structure holds the state of the SHA-1 hash calculation, including the intermediate state variables, bit count, and buffer used to store input data.

Definition at line 51 of file sha1.h.

Member Data Documentation

◆ bit_count

uint64_t ha_sha1_context::bit_count

The number of processed bits.

Definition at line 54 of file sha1.h.

◆ buffer

uint8_t ha_sha1_context::buffer[HA_SHA1_BLOCK_SIZE]

The buffer to hold the current input block.

Definition at line 55 of file sha1.h.

◆ state

uint32_t ha_sha1_context::state[5]

The SHA-1 state variables (5 words).

Definition at line 53 of file sha1.h.


The documentation for this struct was generated from the following file: