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

Context structure for SHA-2 256-bit hashing. More...

#include <sha2.h>

Public Attributes

uint32_t state [8]
uint64_t bit_count
uint8_t buffer [HA_SHA2_256_BLOCK_SIZE]

Detailed Description

Context structure for SHA-2 256-bit hashing.

This structure holds the internal state, bit count, and buffer used during the SHA-2 256-bit hash computation.

Definition at line 146 of file sha2.h.

Member Data Documentation

◆ bit_count

uint64_t ha_sha2_256_context::bit_count

Bit count representing the total input length.

Definition at line 150 of file sha2.h.

◆ buffer

uint8_t ha_sha2_256_context::buffer[HA_SHA2_256_BLOCK_SIZE]

Buffer used for processing data in 512-bit blocks.

Definition at line 151 of file sha2.h.

◆ state

uint32_t ha_sha2_256_context::state[8]

Internal state (8 words).

Definition at line 148 of file sha2.h.


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