wolfBoot/docs
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
..
png
…
API.md
…
Agilex5.md
…
CMake.md Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
Compression.md Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
DICE.md
…
FIPS.md
…
HAL.md Use flash erase units for encryption key updates 2026-11-10 11:19:28 +01:00
Loader.md
…
MCXN947-DICE.md
…
PQ.md
…
PolarFire.md
…
README.md docs: drop stale STM32.md index entry and add missing docs to docs/README.md 2026-11-06 14:46:53 -08:00
Renesas.md
…
SBOM.md
…
STM32-TZ.md
…
Signing.md Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
TPM.md
…
Targets.md imx8mm, imx8qm: move the identity MMU and SDMA cache maintenance to assembly 2026-11-10 09:26:57 +01:00
Windows.md
…
ata_security.md
…
azure_keyvault.md
…
compile.md Use flash erase units for encryption key updates 2026-11-10 11:19:28 +01:00
encrypted_partitions.md Use flash erase units for encryption key updates 2026-11-10 11:19:28 +01:00
firmware_image.md Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
firmware_update.md
…
flash-OTP.md
…
flash_partitions.md
…
fwTPM.md
…
hooks.md
…
keystore.md
…
lib.md
…
measured_boot.md
…
remote_flash.md
…
secure_app_handoff.md
…
wolfHAL.md
…
wolfHSM.md
…

README.md

wolfBoot Docs and Platform-Specific Details

See also: wolfBoot Product Overview and wolfBoot Manual.

  • Agilex5.md - Altera Agilex 5 port: Cortex-A TF-A model with wolfBoot as BL33 booting a signed Linux FIT.
  • API.md - Overview of wolfBoot public APIs and how to use them.
  • ata_security.md - ATA security features (lock/unlock, passwords) and wolfBoot integration.
  • azure_keyvault.md - Using Azure Key Vault for key management and signing with wolfBoot.
  • CMake.md - CMake-based build setup, presets, toolchains, and tips for building wolfBoot.
  • compile.md - How to build/compile wolfBoot (toolchains, options, typical steps).
  • Compression.md - Compressed firmware updates: a gzip-compressed update partition installed into a boot partition that executes in place.
  • DICE.md - DICE-based PSA attestation service: token format, keying options, and access from non-secure code.
  • encrypted_partitions.md - Creating and managing encrypted firmware/data partitions.
  • firmware_image.md - wolfBoot firmware image format, layout, and metadata.
  • firmware_update.md - Update flow: slots, verification, rollback, and recovery.
  • FIPS.md - Building wolfBoot with the wolfCrypt FIPS 140-3 module: approved algorithms, DRBG entropy, and in-core integrity sealing.
  • flash-OTP.md - Using One-Time Programmable (OTP) regions in flash for secure data.
  • flash_partitions.md - Flash partitioning schemes and configuration guidance.
  • fwTPM.md - Hosting wolfTPM's firmware TPM 2.0 in the secure TrustZone image on STM32H5, exposed via callable services.
  • HAL.md - Hardware Abstraction Layer notes and porting considerations.
  • hooks.md - User-defined hooks for injecting custom logic into the wolfBoot boot process.
  • keystore.md - Keystore design, key storage, and access strategies.
  • lib.md - Using wolfBoot as a library and linking/integration guidance.
  • Loader.md - Loader/secondary stage behavior and handoff to application.
  • MCXN947-DICE.md - DICE / PSA initial attestation sample on NXP MCXN947 using the EdgeLock Secure Subsystem.
  • measured_boot.md - Measured boot concepts and recording measurements (e.g., PCRs).
  • png/ - Folder of images/diagrams referenced by the documentation.
  • PolarFire.md - Microchip PolarFire SoC: quick start, boot configurations, sNVM/PUF key storage, SBI vendor extension, boot mode 2.
  • PQ.md - Post-quantum algorithms and PQC support in wolfBoot.
  • README.md - Overview and index of the documentation set.
  • remote_flash.md - Working with external/remote flash (SPI/QSPI, mapping, access).
  • Renesas.md - Notes and specifics for Renesas platforms/ports.
  • SBOM.md - Generating CycloneDX 1.6 and SPDX 2.3 SBOMs for every configuration and build system.
  • secure_app_handoff.md - WOLFBOOT_SECURE_APP: booting a signed Secure-state runtime (e.g. wolfTrust) with measured-boot handoff.
  • Signing.md - Keys, signatures, and the image signing workflow.
  • STM32-TZ.md - STM32 TrustZone (Armv8-M) setup and usage with wolfBoot.
  • Targets.md - Supported targets and platform-specific configuration.
  • TPM.md - TPM integration, measured boot, and attestation flows.
  • Windows.md - Barebones Windows setup without Visual Studio: LLVM/clang host compiler for VS Code or command-prompt builds.
  • wolfHAL.md - Using wolfHAL as an alternative portable HAL backend for clock, flash, GPIO, UART, and SPI.
  • wolfHSM.md - Integrating wolfHSM with wolfBoot for secure key operations.