Commit Graph

300 Commits (0fd34f23c744a5944e22f816f04158c1d851d4be)

Author SHA1 Message Date
Daniele Lacamera a6fdec3901 self-encrypt prototype; tested on stm32l0 2022-09-21 18:49:52 +02:00
Daniele Lacamera f6eeb8dd5d Preparing release v1.12 2022-07-26 09:57:32 +02:00
David Garske 3c2c26bf3a Fixes for IAR. Switch to new `src/keystore.c` for keys. Fixes for building keytools in Visual Studio. 2022-07-26 09:34:53 +02:00
Daniele Lacamera 7f9711aad5 Fix delta-update-ext test 2022-07-25 16:39:54 +02:00
Daniele Lacamera 1275219a7b Sign.py: fixed output file name when encrypt=1 2022-07-25 10:38:39 +02:00
Daniele Lacamera 40afaaffe2 Fixed UEFI example too 2022-07-21 20:18:34 +02:00
Daniele Lacamera 93dd53ac0f Fixed support for raspberry-pi 2022-07-21 20:18:34 +02:00
Daniele Lacamera 30b9d5b6f8 Fixed keygen.py case with no '-g' arguments 2022-07-20 20:17:55 +02:00
Daniele Lacamera dd9c19a1f3 Fixed typo in argument parsing 2022-07-20 20:17:39 +02:00
Daniele Lacamera c33fa449cb delta-enc: Fix delay after reboot in between tests 2022-07-20 13:43:05 +02:00
Daniele Lacamera 4a16372140 Delta test: remove unnecessary reboots 2022-07-20 11:51:58 +02:00
Daniele Lacamera 5ec00f9565 [sign.py] Fixed image path in delta + encrypt 2022-07-20 11:51:18 +02:00
Daniele Lacamera 9605dd283f Fixes for test cases using keystore 2022-07-19 15:33:29 +02:00
Daniele Lacamera 5e1a96969e Updated footprint sizes 2022-07-19 15:32:28 +02:00
Daniele Lacamera 1e11f3081b keygen.c : exporting keystore also in binary format 2022-07-19 15:32:28 +02:00
Daniele Lacamera 8cc0735237 Fix namefile parser in sign.py 2022-07-19 15:32:28 +02:00
Daniele Lacamera 1542a15c90 Keystore: array of public keys generated by keygen 2022-07-19 15:32:28 +02:00
Daniele Lacamera 49ed0a33e0 Fixed typo in RSA3072 test name 2022-07-19 13:26:11 +02:00
Daniele Lacamera 8558f2b1d9 Adjusted automated test after jenkins node update 2022-07-15 17:15:00 +02:00
Marco Oliverio d398f6708f tests: add test for update and rollback using simulated target 2022-07-12 10:13:10 +02:00
Daniele Lacamera be3a02c577 Fixed allocator for ECC curve-spec size in SMALL_STACK 2022-07-07 16:30:13 +02:00
Daniele Lacamera 711cdae42e Updated submodules wolfSSL + wolfTPM. Updated footprint size. 2022-07-07 16:09:05 +02:00
Daniele Lacamera acfdd1f676 Added support for RSA3072 2022-05-31 12:13:34 +02:00
Daniele Lacamera a9ffb3c98a Fixed typos. Removed verbose command line help. 2022-05-24 17:24:31 +02:00
Daniele Lacamera 063c21430c Added partition ID. Extended sign manual 2022-05-24 13:31:50 +02:00
Daniele Lacamera b47b9cef9b Corrected style (indentation, line wrap) 2022-05-23 20:39:57 +02:00
Daniele Lacamera 3731157efe Sign tool: improved output (version, algorithms) 2022-05-23 15:27:22 +02:00
Daniele Lacamera 69c01b7d6d Delta + encryption: added tests for AES128/256 2022-05-23 15:26:51 +02:00
Daniele Lacamera 6d7d8646c6 Encrypted delta: support in C keytools + fixed test 2022-05-23 14:10:13 +02:00
Daniele Lacamera 957b9d3c8c Initial support for delta-encrypted updates 2022-05-23 12:00:57 +02:00
Daniele Lacamera 49946a15f9 Fixed build of delta update tools 2022-05-20 09:11:28 +02:00
Daniele Lacamera f36276506a Fixed checks due to footprint size increase 2022-05-20 08:06:07 +02:00
David Garske 6068a8047c wolfBoot improvements (from elms):
* Add `WOLFBOOT_DUALBOOT` for dynamic fallback
* Refactor header field parsing
* Cleanup compiler warnings and logic extra check
* Option to leave out partition based functions
* Add `WOLFBOOT_FIXED_PARTITIONS` enable using partition enum and related functions
* Wrap all delta update references
* Update raspberry documentation
* EFI refactoring
* Add `keytools_check` target
* Add "library" target
2022-05-20 08:06:07 +02:00
Daniele Lacamera 0ad6033373 Adjust footprint watermarks for 5.3.0 2022-05-04 15:21:33 +02:00
elms 1c361f18fe
Merge pull request #197 from danielinux/tpm2-test-fix
Fix regressions in wolfTPM integration and tests
2022-04-11 15:53:50 -07:00
Daniele Lacamera e755700451 Fix regressions in wolfTPM integration and tests 2022-04-11 18:23:10 +02:00
Daniele Lacamera 0ee5151649 Fix footprint for SIGN=NONE 2022-04-08 20:37:28 +02:00
David Garske 6b61b812a6
Merge pull request #194 from danielinux/footprint
Added automated footprint regression tests
2022-04-08 11:19:07 -07:00
Daniele Lacamera 5da0982dfd Added check for SIGN=NONE 2022-04-08 19:46:02 +02:00
Daniele Lacamera 3815067fa0 Fixed SIGN=NONE. Improved tests 2022-04-08 13:04:26 +02:00
Daniele Lacamera 6ff04647e9 Added automated footprint regression tests 2022-04-08 10:54:17 +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 Lacamera 00d32d33a2 Added test with invalid/corrupted update 2022-03-17 08:32:33 +01:00
Daniele Lacamera 73fe84c55c Fixed version check armor, add no-downgrade tests 2022-03-16 11:19:05 +01:00
Daniele Lacamera f79b9742a9 Added target to test armored version on renode 2022-03-14 18:22:47 +01:00
Daniele Lacamera 5a15fe1138 Added armored panic() function form arm cortex-m 2022-03-14 13:06:13 +01:00
David Garske f99ac826a3
Merge pull request #182 from danielinux/test-actions
Add github actions for renode tests on docker
2022-03-03 08:24:05 -08:00
Daniele Lacamera 3f2eec8299 Add github actions for renode tests on docker 2022-03-03 16:40:46 +01:00
Daniele Lacamera 7b51eef290 Fixed comparison of RSA4096 header size in sign.py 2022-03-02 17:46:35 +01:00
Daniele Lacamera 7b4054ab2c Adjusted after review 2022-02-11 12:51:55 +01:00
Daniele Lacamera 561312c8cc Added firmware update tests on nRF52 2022-02-11 10:48:47 +01:00
Daniele Lacamera d2482d97fa Added script renode-test-all 2022-02-11 10:48:47 +01:00
Daniele Lacamera 7eb63a93e4 Restored quiet test 2022-02-11 10:48:47 +01:00
Daniele Lacamera f2280f5575 Added renode board: nrf52840 2022-02-11 10:48:47 +01:00
Daniele Lacamera 11d7a67498 Fixed fail case with version mismatch. Quiet test. 2022-02-11 10:48:47 +01:00
Daniele Lacamera 539cc97e73 Added renode board: sifive-hifive-fe310.
+Quicker test
2022-02-11 10:48:47 +01:00
Daniele Lacamera 402d7b412c Added new renode board: stm32F746 2022-02-11 10:48:47 +01:00
Daniele Lacamera 123587de0f Removed unused targets 2022-02-11 10:48:47 +01:00
Daniele Lacamera ce8d01864c Added basic test cases with renode 2022-02-11 10:48:47 +01:00
David Garske 262a5b0a78
Merge pull request #167 from danielinux/aes-encryption
Add AES encryption support
2022-02-09 10:55:51 -08:00
Daniele Lacamera 67912790de Fixed Chacha in C keytools 2022-02-07 16:39:56 +01:00
Daniele Lacamera 61275ec9dd Update Chacha ENCRYPT_BLOCK_SIZE to match IV ctr 2022-02-07 16:35:25 +01:00
Daniele Lacamera 92e9a443fb Updated key tools to use complete IV range for AES 2022-02-07 10:51:18 +01:00
Daniele Lacamera bd69326e0f Propagate the selected IMAGE_HEADER_SIZE to sign.c 2022-02-02 12:23:32 +01:00
Daniele Lacamera daff2a04a8 Fixed STM32L4 HAL, added IMAGE_HEADER_SIZE option 2022-02-02 12:05:14 +01:00
Daniele Lacamera a9cbb91892 Added support for --aes128/--aes256 in sign.c 2022-01-31 18:16:19 +01:00
Daniele Lacamera 43a5a38629 Fixes to AES-CTR encryption after testing 2022-01-31 16:46:09 +01:00
Daniele Lacamera b656e4abef Support for --aes128 and --aes256 in sign.py 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
elms 0d8d18a4aa
Merge pull request #173 from danielinux/stm32f4_orig 2022-01-20 15:14:27 -08:00
Daniele Lacamera 34341f96f7 Change FLASH origin for stm32f4 to 0x08000000 2022-01-21 00:07:19 +01:00
Daniele Lacamera b7406994c0 Fix alignment of delta fields in sign.c 2022-01-20 17:52:59 +01:00
Daniele Lacamera 5be0b42c8d Fixed delta manifest header alignment 2022-01-17 13:34:54 +01:00
Daniele Lacamera 1886ad395e Fixed buffer size in delta tools 2022-01-03 13:44:48 +01:00
Daniele Lacamera a32f8d68aa Added missing test cases for Ed448; fix case 34,44 2021-12-16 17:26:00 +01:00
elms 0eea9f4080
Merge pull request #163 from danielinux/delta-update-fix 2021-12-15 09:06:18 -08:00
Elms e42094e23c tools: windows solution using windows slashes for includes 2021-12-15 08:46:06 -08:00
Elms 8726c1cc42 tools: Add ed448 for windows solutions 2021-12-15 08:46:06 -08:00
Elms fa8284e448 tools: update sign tool solution for windows 2021-12-15 08:46:06 -08:00
Daniele Lacamera d027ccbc8a Minor fixes in integration tests 2021-12-15 14:58:14 +01:00
Daniele Lacamera 71cb839a07 uart-flash-server: build own libwolfboot.o 2021-12-15 14:57:57 +01:00
Daniele Lacamera 845fd02edf Added tests for ed448, fixed sign.py 2021-12-14 16:55:10 +01:00
Daniele Lacamera 241099eebf Added Ed448 support for python keytools
Depends on https://github.com/wolfSSL/wolfcrypt-py/pull/25/
2021-12-13 13:52:06 +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 2526dbb40a Fix to use flash base address on STM32G0. 2021-11-29 23:17:43 -08:00
David Garske 8a3714b524
Merge pull request #150 from danielinux/ext_delta
Fixed delta updates from external devices
2021-10-07 09:27:35 -07: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 8ffdf1997b Fixed scripts by adding explicit "--ecc256" argument 2021-10-07 12:25:20 +02:00
Daniele Lacamera 157a03edd3 Fixed key import ranges in ecc sign.py
Same fix as wolfcrypt-py/b79527f876385ecfc23ff47696c32eaf74ff792c

The array slicing in ecc.decode_key_raw() call wrongly assumed array as
inclusive (i.e. [0:31] to include from 0 to 31, instead of the correct
form [0:32]).
2021-09-27 19:19:31 +02:00
Daniele Lacamera b29aea4422 Fixed keytools error handling. Removed inclusion of target.h. 2021-09-06 17:45:41 +02:00
David Garske cabbb5e556 Fix for building key tools to make sure target.h exists. Fix key tool warnings. 2021-08-31 07:06:34 -07:00
Daniele Lacamera aba428b243 Changed bitrate for uart_flash tests 2021-08-24 10:00:04 +02:00
Daniele Lacamera 84034d5583 Fixed variable definitions in autotest 2021-08-23 19:48:32 +02:00
Daniele Lacamera 012bba3ce3 Fixed after review comments 2021-08-20 10:10:51 +02:00
Daniele Lacamera 7e93921396 Added missing bmdiff.c file 2021-08-19 19:04:04 +02:00
Daniele Lacamera 25eb2b963e Added header tags for inverse update, fixed sign.c 2021-08-19 19:04:04 +02:00