Commit Graph

210 Commits (07d5b50ce7e6a2ff7abc21b2b43e46db0d1debda)

Author SHA1 Message Date
Daniele Lacamera 3815067fa0 Fixed SIGN=NONE. Improved tests 2022-04-08 13:04:26 +02:00
Daniele Lacamera 411bf3330c Fixed SIGN=ECC384 WOLFBOOT_SMALL_STACK=1 NO_ASM=1 2022-04-07 18:38:16 +02:00
Daniele Lacamera da30333cc5 Fixed regression with HASH=SHA3 2022-04-07 10:05:59 +02:00
Daniele Lacamera f04889ee29 Added SHA2-384 support for integrity checks 2022-04-06 09:41:37 +02:00
Daniele Lacamera d06178c3a8 Added new signature algo: ECC384 2022-04-01 12:21:42 -07:00
Daniele 404a41e1fb Added missing include to riscV port 2022-03-23 21:22:44 +01:00
Daniele Lacamera a017e482b9 Removed dead code after reviewer's comments 2022-03-23 09:19:33 +01:00
Daniele Lacamera 7b7282e74d Added comment as suggested by reviewer. 2022-03-17 12:10:57 +01:00
Daniele Lacamera 73fe84c55c Fixed version check armor, add no-downgrade tests 2022-03-16 11:19:05 +01:00
Daniele Lacamera 0684245187 Added canary vars around signature_ok flag, improved checks 2022-03-15 12:36:24 +01:00
Daniele Lacamera 0665eeff67 Reverted 'return -1' fix; removed _update() optim. 2022-03-14 18:14:50 +01:00
Daniele Lacamera 028d184b17 Added armored image version, improve armor 2022-03-14 17:45:47 +01:00
Daniele Lacamera 32ecb5c3b6 Added pre-boot sanity check 2022-03-14 16:04:11 +01:00
Daniele Lacamera 9ac4a6d365 Armored signature verification back-end 2022-03-14 15:12:36 +01:00
Daniele Lacamera 5a15fe1138 Added armored panic() function form arm cortex-m 2022-03-14 13:06:13 +01:00
Daniele Lacamera 3f2eec8299 Add github actions for renode tests on docker 2022-03-03 16:40:46 +01:00
Daniele Lacamera 61275ec9dd Update Chacha ENCRYPT_BLOCK_SIZE to match IV ctr 2022-02-07 16:35:25 +01:00
Marco Oliverio b7026a5b1c update: don't set IV on SWAP based on SWAP address.
New update logic when using encrypted external flash:

- an update sector is copied to swap. No decryption and re-encryption is done in
this step. This is important, because the swap address never changes and
otherwise the data will be encrypted, one sector at the time, with the same
IV. It's also a performance improvement.

- a boot sector is copied to update. In this step the boot sector is encrypted

- the swap sector is copied into boot. In this step the swap sector is decrypted

This commit moves the set_iv logic into wolfBoot_copy_sector to account for
this.
2022-02-07 15:03:08 +01:00
Marco Oliverio 0f9613837a libwolfboot: make crypto_*() functions public 2022-02-07 15:03:08 +01:00
Marco Oliverio fbef9e8a98 wolfboot: lib: fix wrong range check 2022-02-07 15:03:08 +01:00
Daniele Lacamera 644d83309e Fixed AES iv calculation (all test-enc passing) 2022-02-07 13:29:15 +01:00
Daniele Lacamera 2e88167554 AES-CTR: Use entire block range for IV setting 2022-02-07 10:20:58 +01:00
Daniele Lacamera 43a5a38629 Fixes to AES-CTR encryption after testing 2022-01-31 16:46:09 +01:00
Daniele Lacamera 5551666e08 Draft: added AES encryption support 2022-01-28 20:26:59 +01:00
David Garske 5463105eab Adds STM32U5 support. Thank you ST. 2022-01-24 00:07:03 -08:00
Daniele Lacamera 1886ad395e Fixed buffer size in delta tools 2022-01-03 13:44:48 +01:00
Daniele Lacamera 21c57be53e Added comments to the delta diff code 2022-01-03 13:04:49 +01:00
Daniele Lacamera c76166f6ea Fixed corner case delta bug when matching across old/new sector 2021-12-30 12:23:44 +01:00
Elms 78ace2ee17 Fixes for Cortex R5 self-update
- load `f021_lookup_bank()` into RAM
 - `arch_reboot()` for TMS570
2021-12-20 10:08:07 -08:00
elms 0eea9f4080
Merge pull request #163 from danielinux/delta-update-fix 2021-12-15 09:06:18 -08:00
Elms fa8284e448 tools: update sign tool solution for windows 2021-12-15 08:46:06 -08:00
Daniele Lacamera 23e35247a4 Fixed patch offset in delta update (ZD12933) 2021-12-15 14:57:05 +01:00
Daniele Lacamera 32520b5260 Fix copy/paste typo 2021-12-14 17:19:43 +01:00
Daniele Lacamera 845fd02edf Added tests for ed448, fixed sign.py 2021-12-14 16:55:10 +01:00
Daniele Lacamera 2e7b63eae5 Adding support for ED448 verification 2021-12-13 12:05:37 +01:00
Marco Oliverio a187442455 support booting EFI application on x86_64 architecture
Co-authored-by: Daniele Lacamera <daniele@wolfssl.com>
2021-11-30 18:43:50 +01:00
David Garske 905730d927 Fixes for secure user memory feature. 2021-11-29 23:17:43 -08:00
Daniele Lacamera 33102a54fd Fixed STM32L5 dual-bank mode 2021-11-17 11:53:57 +01:00
Daniele Lacamera ead24a0d6c fixes for allocations with smallstack 2021-11-10 00:58:28 -08:00
Daniele Lacamera 5f4bbae1d0 Fixed extra includes in delta.c preventing to build userspace tools 2021-10-07 18:24:41 +02:00
Daniele Lacamera f26dd61e23 Fixed delta updates from external devices (+ test) 2021-10-07 14:32:51 +02:00
Daniele Lacamera aaf780fae9 Added test for delta-update-ext 2021-10-07 14:32:51 +02:00
Daniele Lacamera dbc8ea9589 Minor fixes 2021-10-07 14:32:51 +02:00
Daniele Lacamera 922c17f1cc Draft: integrate delta updates with external flash support 2021-10-07 14:32:48 +02:00
Elms da353cfe2e TMS570LC43xx: allow overwriting `PART_BOOT_ENDFLAGS` 2021-10-07 01:45:18 -07:00
Elms aaa8438f3f TMS570LC43xx: Fix status updates via NVM_FLASH_WRITEONCE 2021-10-07 01:45:18 -07:00
Elms d302c633c2 TMS570LC43xx: flash updates and init stack pointer
- cleanup warnings and rework exceptions to be more robust
 - CORTEX R5: Initialization of stack pointer
 - updates to F021 flash from testing
 - sync options for command line build with IDE
2021-10-07 01:45:18 -07:00
Daniele Lacamera 012bba3ce3 Fixed after review comments 2021-08-20 10:10:51 +02:00
Daniele Lacamera 69e5a361d3 Guard gcc dialect attribute 2021-08-17 16:10:28 +02:00
Daniele Lacamera 51ad005976 CL bmpatch/bmdiff tool moved to separate module 2021-08-17 16:01:16 +02:00