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
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
92e9a443fb
Updated key tools to use complete IV range for AES
2022-02-07 10:51:18 +01:00
Daniele Lacamera
82107073ee
Added config files for enc-test
2022-02-07 10:31:52 +01:00
Daniele Lacamera
2e88167554
AES-CTR: Use entire block range for IV setting
2022-02-07 10:20:58 +01:00
David Garske
7a477aab56
Merge pull request #175 from danielinux/stm32l4_fix
...
Fixed STM32L4 HAL, added IMAGE_HEADER_SIZE option
2022-02-02 12:08:48 -08: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
David Garske
4b3eb8e6fe
Improve G0 target documentation for using the official STM32 tools.
2022-01-28 16:10:29 -08:00
Daniele Lacamera
b656e4abef
Support for --aes128 and --aes256 in sign.py
2022-01-28 20:26:59 +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
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
elms
2b1f402ffb
Merge pull request #171 from danielinux/delta-sign-align
2022-01-20 10:13:18 -08:00
Daniele Lacamera
b7406994c0
Fix alignment of delta fields in sign.c
2022-01-20 17:52:59 +01:00
David Garske
84be565596
Add Nordic nRF52 support to documentation.
2022-01-19 23:53:23 -08:00
Daniele Lacamera
5be0b42c8d
Fixed delta manifest header alignment
2022-01-17 13:34:54 +01:00
David Garske
c059eba452
Merge pull request #170 from danielinux/prepare-v1.10
...
Update wolfSSL submodule to include PsoC6 Sha-512 fix
2022-01-10 14:00:27 -08:00
Daniele Lacamera
efc7c2ebc4
Up wolfSSL to latest master to include psoc6 sha512 fix
2022-01-10 21:31:54 +01:00
David Garske
8a092d3103
Merge pull request #169 from danielinux/prepare-v1.10
...
Prepare release v1.10
2022-01-10 09:07:51 -08:00
Daniele Lacamera
3a8a295a91
Added v1.10 changelog
2022-01-10 17:35:27 +01:00
Daniele Lacamera
b3ada3a265
Version up to 1.10.0000
2022-01-10 17:35:27 +01:00
Daniele Lacamera
326c02711d
Submodules update
2022-01-10 17:35:27 +01:00
David Garske
308a4ea4ff
Merge pull request #168 from danielinux/psoc6_build_fixes
...
Fixes to build PSOC6
2022-01-10 07:57:53 -08:00
Daniele Lacamera
7b7ddb8b7b
Fixes to build PSOC6
2022-01-10 09:19:22 +01:00
elms
3b093de2b2
Merge pull request #166 from danielinux/delta-fix
2022-01-03 11:15:27 -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
David Garske
777f25e31e
Merge pull request #165 from danielinux/fix-test-regressions
...
Added missing test cases for Ed448 + Fixed regressions in self test
2021-12-16 08:37:30 -08: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
23e35247a4
Fixed patch offset in delta update (ZD12933)
2021-12-15 14:57:05 +01:00