Brings toolkit #58: one timestamp for Make and CMake when --root is
passed, one gen-sbom --help per run, and the Windows DESTDIR path in
install-sbom and uninstall-sbom.
- Re-pin with wolfssl-compliance-tooling-sync. The pin brings the python3
fallback (configure no longer needs python3), the TARGETS/LIB checks,
the launcher strip in the Zephyr front end and the weak-entropy marker.
- The Zephyr front end reads the compile_commands.json of a west build.
The ide-sbom wrapper now sets --root, not the removed --cmakelists, and
docs/SBOM.md shows the west command.
wolfGlass is now wolfssl-compliance-tooling. Its master removed the old
macro, function, and script names, so a re-sync alone breaks the build.
- Re-vendor tools/sbom/ at 8a96c64 and pin it in
.wolfssl-compliance-tooling-rev.
- Call wolfssl_compliance_tooling_sbom_rule in the Makefile and
wolfssl_compliance_tooling_add_sbom in cmake/sbom.cmake.
- Point the drift check at wolfSSL/wolfssl-compliance-tooling and rename
the job to compliance_tooling_drift.
- Use the new name in the docs and comments.
The CMake helper now also adds install-sbom and uninstall-sbom targets.
LMS/HSS and XMSS/XMSS^MT are stateful hash-based signature schemes: each
signature consumes one-time key material, and reusing it breaks the whole
key. The key tools store the private key in a plain local file and sign
rewrites it in place, a pattern that does not meet production storage
requirements (atomic, durable, protected).
- keygen: print a warning after generating an LMS/XMSS key
- sign: print a warning (once per run) after a successful LMS/XMSS
signature; other algorithms are unaffected
- docs/Signing.md: new "Stateful signatures" section explaining the
statefulness, the file-based demo/development pattern, and the
production guidance (stateless algorithm, or protected storage)
Verification:
- make -C tools/keytools: builds clean
- keygen --lms / --xmss: warning printed, rc=0; keygen --ed25519: none
- sign --lms / --xmss: warning printed once, rc=0; sign --ed25519: none
- sign --lms --delta (two signatures per run): warning printed once
- make -C tools/unit-tests run: exit 0
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>