ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
pc_sha256_ctx Struct Reference

Streaming SHA-256 context. More...

#include <sha256.h>

Public Attributes

mbedtls_sha256_context mbed
 HW-accelerated SHA-256 state (ESP32 mbedtls).
 

Detailed Description

Streaming SHA-256 context.

Holds the running hash state so data can be fed in multiple chunks. Backs the per-packet HMAC (run on every inbound and outbound SSH packet) and the KEX exchange-hash assembled from several separately-encoded fields, so hardware acceleration matters for bulk throughput, not just handshakes.

Definition at line 39 of file sha256.h.

Member Data Documentation

◆ mbed

mbedtls_sha256_context pc_sha256_ctx::mbed

HW-accelerated SHA-256 state (ESP32 mbedtls).

Definition at line 41 of file sha256.h.

Referenced by pc_sha256_final(), pc_sha256_init(), and pc_sha256_update().


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