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

BLAKE3 hash state context. More...

#include <blake3.h>

Public Attributes

uint8_t input [64]
 Input buffer for storing data being processed.
uint32_t bytes
 The number of bytes processed so far.
uint32_t block
 The block counter for the current chunk.
uint64_t chunk
 The chunk counter for tracking progress.
uint32_t * cv
 Pointer to the current hash state.
uint32_t cv_buf [54 *8]
 Buffer for the hash state (54 * 8 words).

Detailed Description

BLAKE3 hash state context.

This structure holds the internal state of the BLAKE3 hashing algorithm. It includes buffers for input data, the current hash state, and other necessary variables for processing the data in chunks.

Definition at line 36 of file blake3.h.

Member Data Documentation

◆ block

uint32_t ha_blake3_context::block

The block counter for the current chunk.

This counter tracks the number of blocks that have been processed within the current chunk of data being hashed.

Definition at line 61 of file blake3.h.

◆ bytes

uint32_t ha_blake3_context::bytes

The number of bytes processed so far.

This counter keeps track of the total number of bytes processed by the hash function so far, including those passed in previous blake3_update calls.

Definition at line 53 of file blake3.h.

◆ chunk

uint64_t ha_blake3_context::chunk

The chunk counter for tracking progress.

This variable tracks the number of chunks that have been processed during the hashing process.

Definition at line 69 of file blake3.h.

◆ cv

uint32_t* ha_blake3_context::cv

Pointer to the current hash state.

This is a pointer to the current state of the hash, which is updated during each step of the hashing process. It is a pointer to an array of 32-bit words.

Definition at line 78 of file blake3.h.

◆ cv_buf

uint32_t ha_blake3_context::cv_buf[54 *8]

Buffer for the hash state (54 * 8 words).

This buffer stores the intermediate hash states during the hashing process. It is large enough to hold multiple rounds of hashing state, with each round consisting of 8 words (32 bytes).

Definition at line 87 of file blake3.h.

◆ input

uint8_t ha_blake3_context::input[64]

Input buffer for storing data being processed.

This buffer temporarily holds up to 64 bytes of input data being processed at a time during the hash update operation.

Definition at line 44 of file blake3.h.


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