Commit Graph

2246 Commits (8555ce4f3e73fcfed01b9929853fdb37d080c8a3)

Author SHA1 Message Date
Daniele Lacamera 8555ce4f3e Fix interrupted delta update fallback 2025-10-17 14:02:23 +02:00
Daniele Lacamera 38631d2481 Fixed regression in delta fallback 2025-10-17 13:16:31 +02:00
Daniele Lacamera b35f3b6334 Ensure version numbers are initialized before the inversion check 2025-10-17 12:11:32 +02:00
Daniele Lacamera 8cab4bc612 Footprint adjustment (ML_DSA +4B) 2025-10-17 12:04:53 +02:00
Daniele Lacamera 6fba3b4054 Fixed unit tests 2025-10-17 12:03:42 +02:00
Daniele Lacamera 18cbea59de Refactoring of IV handling to prevent reusing IVs
During fallback operations, use a different encryption IV than the one
used to encrypt the backup during the update. This ensures that the same
IV is never reused to encrypt different sectors.
2025-10-17 09:44:46 +02:00
David Garske 68d28fc482
Merge pull request #609 from gojimmypi/pr-copyright
Update Copyright year to 2025
2025-10-16 15:09:03 -07:00
David Garske 301080adc4 Reverted change for H5 heap (not needed). Tracked issue down to a missing malloc fixed here: https://github.com/wolfSSL/wolfssl/pull/9305 2025-10-16 23:02:09 +02:00
David Garske 2df3768cce Fixes to support latest wolfSSL (disable KDF/PRF) 2025-10-16 23:02:09 +02:00
David Garske 4c8bf4069f Fix for "benchmark" command to support float with nano.specs. Increase test-app heap size. 2025-10-16 23:02:09 +02:00
gojimmypi fbd8dcf8a2
Update Copyright year to 2025 2025-10-15 11:33:53 -07:00
David Garske 456c3b495f
Merge pull request #606 from bigbrett/tc3-uart-quickfix
TC3: UART quickfix
2025-10-10 11:19:46 -07:00
David Garske f7d526057a Fixes to resolve STM32H5 TrustZone example. Thank you @danielinux 2025-10-10 19:42:20 +02:00
David Garske 5d27adaf07 Improve linker script logic on STM32H5. 2025-10-10 19:42:20 +02:00
David Garske b1ff1e36eb Minor improvements. STM32H5 non-secure flash watermark. Fixing layout of linker script. Still getting fault on calls to smse functions like `wcs_get_random`. 2025-10-10 19:42:20 +02:00
David Garske 7f193af97d Fixes for STM32H5 TrustZone and PKCS11 store 2025-10-10 19:42:20 +02:00
Brett Nicholas 4761410c36 TC3: add final printout and block on TC flag 2025-10-10 11:33:12 -06:00
David Garske 8ef41994c7
Merge pull request #604 from bigbrett/tc3xx-wolf-startup-integration
TC3xx: Replace IDE/AURIX project with new HAL module
2025-10-09 10:16:16 -07:00
David Garske 2a89172ff0
Merge pull request #605 from gojimmypi/pr-timeout
Address workflow timeout, full apt-get source replacements
2025-10-08 15:15:14 -07:00
gojimmypi 92c765ec63
Address workflow timeout, full apt-get source replacements 2025-10-08 14:39:55 -07:00
Brett Nicholas aa21f7c56c add license files 2025-10-08 14:38:24 -06:00
David Garske 62ce4cf679
Merge pull request #603 from gojimmypi/pr-timeout
Fix workflow timeout with revised apt-get source replacements
2025-10-08 12:55:50 -07:00
Brett Nicholas 42cf7e9b70 TC3xx: Replace IDE/AURIX project with new HAL module 2025-10-08 11:03:44 -06:00
gojimmypi 0ddbb29f5d
Fix workflow timeout. Partial sources.list replacement 2025-10-07 18:39:51 -07:00
David Garske 71dc6ffa73
Merge pull request #600 from gojimmypi/pr-timeout
Reduce workflow timeout from default 360 minutes to 15
2025-10-07 12:10:28 -07:00
David Garske 0ce77a4d27
Merge pull request #590 from danielinux/flash-write-as-nsc
NSC functions: add helper to facilitate updates as trustzone non-secure callable
2025-10-07 09:21:02 -07:00
David Garske 21707c7e3b
Merge pull request #595 from danielinux/fix_malloc_pkcs11_store
Fix malloc in pkcs11_store
2025-10-06 13:28:27 -07:00
gojimmypi 691e063e2d
Reduce timeout from default 360 minutes to 15 2025-10-06 13:16:26 -07:00
David Garske be15345d07
Merge pull request #597 from LinuxJedi/wolfpkcs11-2.0
wolfPKCS 2.0 support
2025-10-02 07:58:08 -07:00
Brett Nicholas 004e91db9f remove path override disclaimer from docs 2025-10-02 15:16:27 +02:00
Brett Nicholas 2446911c69 add relative path support for delta updates makefile 2025-10-02 15:16:27 +02:00
Brett Nicholas 2e06a5fafe Refactor Makefiles to allow overriding library dependency paths 2025-10-02 15:16:27 +02:00
Andrew Hutchings 2276a63006 Update wolfPKCS11 to master
Includes a SHA512 fix required for wolfBoot
2025-10-02 06:14:32 +01:00
Andrew Hutchings 4d6671c445 Update wolfPKCS11 to 2.0.0 2025-10-01 14:37:02 +01:00
Andrew Hutchings 79cfce2d1d wolfPKCS 2.0 support
`wolfPKCS11_Store_Remove` was added in wolfPKCS11 2.0, support for it is
needed.
2025-10-01 14:17:39 +01:00
Daniele Lacamera 6cdf76b54e Fix malloc in pkcs11_store 2025-09-23 17:54:29 +02:00
Marco Oliverio 94c6b78e08
Merge pull request #594 from danielinux/docfix-ext_flash_read
Fixed misaligned documentation (ext_flash_read return value)
2025-09-23 15:28:05 +02:00
Daniele Lacamera 6030e15561 Fixed misaligned documentation:
return value of ext_flash_read is `len` in case of success, not 0.

ZD #20548
2025-09-23 05:54:41 +02:00
Marco Oliverio b0f0de94a7
Merge pull request #592 from danielinux/fix-enc-last-boot-sector-backup-in-finalize
Fix corruption of last boot sector with encryption
2025-09-12 16:56:38 +02:00
Daniele Lacamera 83873db650 Removed unused variable 2025-09-12 13:09:59 +02:00
Daniele Lacamera 22999d2719 Removed unused variables 2025-09-11 11:06:38 +02:00
Daniele Lacamera 37326c4062 Fix unit test + compile warning (CI) 2025-09-10 13:56:21 +02:00
Daniele Lacamera 568452552c Fix corruption of last boot sector with encryption
As reported by @reza-hdd in #589:

> When Firmware is large enough to consume all the allocated boot partition sectors, in the the final swap and erase operations (_wolfBoot_swap_and_final_erase_) the last sector of FW in Boot partition, which is used as a temporary sector for a copy operation, gets corrupted after being copied in external Swap partition and copied back. It looks like the contents are copied to the external Swap partition without being encrypted, but get decrypted when it is read back.

This was due to the function wolfBoot_copy_sector() assuming that all
copies having an external SWAP as destination would not need any
encryption, as the "normal" case during update is to copy already
encrypted sectors from UPDATE->SWAP.

In the final state, after the update is successfully applied, the
mechanism saves a copy of the last sector from BOOT->SWAP. In this case,
if the application is big enough, an extra function is needed to
encrypt the content of this last sector before writing it to SWAP.

Restoring the backup is OK (normal case SWAP->BOOT, decryption was
already there as also noted by the reporter).
2025-09-10 13:27:22 +02:00
Daniele Lacamera cd347b5886 Fix visibility of new nsc declarations 2025-09-05 18:14:04 +02:00
Daniele Lacamera d6ba220e55 [rp2350] Added cache in RAM for hal_flash_write 2025-09-05 14:45:35 +02:00
Daniele Lacamera 82e4950b59 Added NSC functions to facilitate updates from NS application 2025-09-05 14:12:50 +02:00
kareem-wolfssl 3801b49f20
Merge pull request #587 from danielinux/cmake-fix-stm32h7
Fixed build with Cmake on STM32H7 with TEST_APPS.
2025-08-14 14:32:24 -07:00
Daniele Lacamera 273c6187dd Removed weird file accidentally committed 2025-08-14 22:06:13 +02:00
Daniele Lacamera f3b4b17bdf Fixed build with Cmake on STM32H7 with TEST_APPS.
As reported in #586
2025-08-07 19:38:10 +02:00
Mattia Moffa e07df6d4bd
Merge pull request #584 from danielinux/release-2.6.0
wolfBoot 2.6.0: Updated Changelog, version
2025-08-01 13:31:52 +02:00