ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_rsip_sha256_ctx_t Struct Reference

Streaming state for incremental SHA-256. More...

#include <ra8_rsip_core.h>

Data Fields

uint32_t state [k_ra8_rsip_sha256_state_words]
 Chaining words H0..H7.
uint8_t block [k_ra8_rsip_sha256_block]
 Partial message block.
uint64_t total_bytes
 Bytes absorbed so far.
uint32_t used
 Bytes in block.
uint8_t initialized
 1 = ready, 0 = unset.

Detailed Description

Streaming state for incremental SHA-256.

Invariant
used is less than k_ra8_rsip_sha256_block.
total_bytes fits SHA-256's 64-bit bit-length field.
Since
0.1.0

Definition at line 382 of file ra8_rsip_core.h.

Field Documentation

◆ block

uint8_t ra8_rsip_sha256_ctx_t::block[k_ra8_rsip_sha256_block]

Partial message block.

Definition at line 384 of file ra8_rsip_core.h.

Referenced by internal_sw_sha256_finalize(), ra8_rsip_sha256_final(), and ra8_rsip_sha256_update().

◆ initialized

uint8_t ra8_rsip_sha256_ctx_t::initialized

1 = ready, 0 = unset.

Definition at line 387 of file ra8_rsip_core.h.

Referenced by ra8_rsip_hmac_sha256_init(), ra8_rsip_sha256_final(), ra8_rsip_sha256_init(), and ra8_rsip_sha256_update().

◆ state

uint32_t ra8_rsip_sha256_ctx_t::state[k_ra8_rsip_sha256_state_words]

Chaining words H0..H7.

Definition at line 383 of file ra8_rsip_core.h.

Referenced by internal_sw_sha256_finalize(), ra8_rsip_sha256_final(), ra8_rsip_sha256_init(), and ra8_rsip_sha256_update().

◆ total_bytes

uint64_t ra8_rsip_sha256_ctx_t::total_bytes

Bytes absorbed so far.

Definition at line 385 of file ra8_rsip_core.h.

Referenced by internal_sw_sha256_finalize(), ra8_rsip_sha256_final(), ra8_rsip_sha256_init(), and ra8_rsip_sha256_update().

◆ used

uint32_t ra8_rsip_sha256_ctx_t::used

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