Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
sha256 Struct Reference

Caller-owned incremental checksum state; treat members as read-only. More...

#include <sha256fst.h>

Data Fields

uint32_t state [8]
uint8_t buffer [SHA256_BLOCK_SIZE]
uint64_t n_bits
uint8_t buffer_counter

Detailed Description

Caller-owned incremental checksum state; treat members as read-only.

The layout is retained for existing C and C++ consumers. Only buffer_counter bytes of buffer are valid before finalization; initialization deliberately does not clear unused buffer storage. No input pointer is kept.

Definition at line 57 of file sha256fst.h.

Field Documentation

◆ buffer

uint8_t sha256::buffer[SHA256_BLOCK_SIZE]

Pending partial block or final padding block.

Definition at line 59 of file sha256fst.h.

◆ buffer_counter

uint8_t sha256::buffer_counter

Pending byte count, always below SHA256_BLOCK_SIZE between calls.

Definition at line 61 of file sha256fst.h.

◆ n_bits

uint64_t sha256::n_bits

Original message length in bitch, excluding padding.

Definition at line 60 of file sha256fst.h.

◆ state

uint32_t sha256::state[8]

Chaining words; the finalizer replaces these with the digest.

Definition at line 58 of file sha256fst.h.


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