wolfBoot/tools
Dirk Van Haerenborgh 96cd40ba53 Use flash erase units for encryption key updates
Add FLASH_ERASE_UNIT / WOLFBOOT_FLASH_ERASE_UNIT independently of the
logical sector size, with a sector-sized fallback and a 128-byte default
for STM32L0.

Update non-write-once hal_set_key() to cache and rewrite only the erase
units touched by the key, nonce, and trailer magic. Preserve surrounding
data, handle fields spanning units and FLAGS_HOME, and validate geometry
and partition bounds before accessing flash.

Default NVM_CACHE_SIZE to the erase unit in non-write-once builds while
keeping write-once caches and redundant trailer copies sector-sized.
On STM32L0 with 4 KiB sectors, the cache shrinks to 128 bytes.

Add erase-geometry, data-preservation, error-handling, and cache-scrubbing
tests for ChaCha20, AES-256, straddling fields, FLAGS_HOME, and the sector
fallback. Document the configuration and HAL erase contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-10 11:19:28 +01:00
..
armclang
…
bin-assemble
…
check_config
…
ci ci: build against the latest MCUXpresso SDK release instead of the manifests' default branch 2026-11-02 14:26:49 -08:00
delta
…
efi
…
elf-parser
…
fdt-parser
…
fs-test
…
keytools Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
linux/wolfboot-sbi PolarFire SoC: SBI vendor extension for the OS: PUF keys, System Controller services and flash access 2026-10-27 16:06:05 -07:00
lms
…
openocd
…
renode CI: Renode test of the custom partition trailer on the Black Pill 2026-10-28 14:35:31 +01:00
sbom
…
scripts imx8mm: RAM-boot image: check the kernel against WOLFBOOT_RAMBOOT_MAX_SIZE 2026-11-10 09:26:57 +01:00
squashelf
…
test-expect-version
…
test-update-server
…
tpm
…
uart-flash-server
…
unit-tests Use flash erase units for encryption key updates 2026-11-10 11:19:28 +01:00
x86_fsp
…
xmss
…
config.mk Use flash erase units for encryption key updates 2026-11-10 11:19:28 +01:00
test-delta.mk
…
test-enc.mk
…
test-renode.mk
…
test.mk Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
wolfboot-rpi-devicetree.diff
…