|
SimpleOTA client main
Shared core of the SimpleOTA Arduino and ESP-IDF clients
|
Minimal FIPS 180-4 SHA-256, no dependencies. More...
Go to the source code of this file.
Data Structures | |
| struct | sota_sha256_ctx |
| A running SHA-256. More... | |
Functions | |
| void | sota_sha256_init (sota_sha256_ctx *ctx) |
| Start a hash. | |
| void | sota_sha256_update (sota_sha256_ctx *ctx, const uint8_t *data, size_t len) |
| Add len bytes from data. | |
| void | sota_sha256_final (sota_sha256_ctx *ctx, uint8_t out[32]) |
| Finish the hash and write the 32-byte digest to out. | |
Minimal FIPS 180-4 SHA-256, no dependencies.
Vendored so the clients build identically on every IDF version: IDF <= 5.x exposes the legacy mbedtls/sha256.h API, IDF 6 (mbedTLS 4) is PSA-only, and neither shape is worth a dual code path for hashing a download stream. Validated against the NIST test vectors in test/host/test_signing.c.
Public domain style implementation (same construction as the reference in FIPS 180-4); streaming init/update/final interface.