Commit Graph

1308 Commits (e4abcbd78b73e29b5b47defd06cf18cc3c15c5ad)

Author SHA1 Message Date
Daniele Lacamera e4abcbd78b Expanded RAM space for App 64->128 KB 2023-09-21 08:29:16 +02:00
Daniele Lacamera ed0357289c Fixed NS flash access + flash write unlock + misc
- non-secure flash area increased to cover BOOT+UPDATE partitions
- call unlock/lock functions before accessing pkcs11 store for writing
- Enabled more features in application wolfcrypt front-end
- Fixed compiler w4rnings
2023-09-21 08:28:23 +02:00
Daniele Lacamera 4205e3105d Test code clean-up 2023-09-21 08:28:23 +02:00
Daniele Lacamera bcbb0c2cfe Rebased on latest master 2023-09-21 08:28:23 +02:00
Daniele Lacamera d53999de18 Fixed PKCS11 store functions.
Working C_InitToken/C_Login.
2023-09-21 08:28:23 +02:00
Daniele Lacamera fd862cbd8f Working PKCS11 test.
Temporarily removed some features so the image fits in 64Kb
2023-09-21 08:28:09 +02:00
Daniele Lacamera 20e8b021b5 Added NS wrappers for PKCS11 API 2023-09-21 07:57:18 +02:00
Daniele Lacamera 5b57d2d08f PKCS11 store functions using wolfBoot hal 2023-09-21 07:57:18 +02:00
Daniele Lacamera f7d6c17685 TZ: PKCS11 wrappers via wolfPKCS11 in S world 2023-09-21 07:57:18 +02:00
Daniele Lacamera c849ddfebb Reverted accidental changes in uart_drv_stm32wb 2023-09-21 07:57:18 +02:00
Daniele Lacamera 9d62a7d13d Added ECC PK_CALLBACKS + CRYPTO_CB APIs 2023-09-21 07:57:18 +02:00
Daniele Lacamera 41b11ed1dd Added uart support for stm32l5 (LPUART1) 2023-09-21 07:57:18 +02:00
Daniele Lacamera 0cc1eea05d Added raw file read from NS-domain
+ fix linker script with the correct NSC address
+ fix ecc key import
2023-09-21 07:57:18 +02:00
Daniele Lacamera 0971d47436 New keyvault slots structure in Secure SRAM
- Example with slots allocated at compile time
- Defining/allocating slots, provisioned as well as empty
- Checks for memory usage
- No free function for slots
2023-09-21 07:57:18 +02:00
Daniele Lacamera 399ee6b594 WCS: Front-end wrappers for ECC sign/verify calls 2023-09-21 07:57:18 +02:00
Daniele Lacamera e2ab9a5553 Unified TZ support for STM32L5/U5
- added file with common code
- added support for TRNG on U5
- added support for wolfcrypt NSC on U5
2023-09-21 07:57:18 +02:00
Daniele Lacamera 80f881dab5 Fixed STM32L5 TRNG driver + simplified GTZC and SAU setup 2023-09-21 07:57:18 +02:00
Daniele Lacamera 426d0346ad Use generic C types for NSC calls
+ cosmetic changes
2023-09-21 07:57:18 +02:00
Daniele Lacamera fd809c5b69 Expanded WCS interface
- Added TRNG driver for STM32L5
- Link with correct objects in test-app
- Expanded wc_callable interface
2023-09-21 07:57:18 +02:00
Daniele Lacamera 61ea65747b Added secure functions to set/provision key slots 2023-09-21 07:57:18 +02:00
Daniele Lacamera ba8ae8e937 Fixed flags check 2023-09-21 07:57:18 +02:00
Daniele Lacamera c7c90cd2cc Back-end calls for ecc sign/verify/getpublic 2023-09-21 07:57:18 +02:00
Daniele Lacamera 9bf80ab8cd Initial draft: wolfcrypt secure mode 2023-09-21 07:57:18 +02:00
David Garske cd1c50297d Add new `CORTEX_M3` option (default ARCH=ARM is Cortex-M4). The M3 does not support UMAAL. 2023-09-21 07:55:31 +02:00
David Garske c3378475ac
Merge pull request #369 from danielinux/armv8m-asm
Enable sp_math assembly optimizations for cortex-m33
2023-09-20 10:33:26 -07:00
Daniele Lacamera 1121a1c5f8 Expanded wolfBoot partition in stm32U5-dualbank 2023-09-20 13:52:29 +02:00
Daniele Lacamera 6ce0bbf013 Stm32l5 configuration: increase wolfboot partition
Bootloader partition expanded to 48KB to accommodate assembly
optimizations in wolfBoot.
2023-09-20 13:49:57 +02:00
Daniele Lacamera 87d38f77bf Add WOLFSSL_SP_ARM_CORTEX_M_ASM to cortex-m33 2023-09-20 09:05:19 +02:00
David Garske ec594101a4
Merge pull request #365 from rizlik/misc_improvements
x86: fsp: misc improvements
2023-09-19 09:48:02 -07:00
Marco Oliverio f5bd675a3e tools: script: make_hd update to use sha384/ecc384 2023-09-19 10:12:59 +00:00
Marco Oliverio c428d5ad23 config: tgl: default wolfboot load base to 64 MB
To have more room for app loading
2023-09-19 10:12:59 +00:00
Marco Oliverio e24c372777 fsp: remove WOLFBOOT_FIXED_PARTITIONS (and hardcoded size limit)
now the size of the image is limited by the available memory only.
The image is loaded in RAM just after wolfboot.
2023-09-19 10:12:59 +00:00
Marco Oliverio d88315c801 fsp: move _stage2_params symbol in wolfboot .bss
including the symbol in the C file will ensure that the linker reserves the
necessary space.
2023-09-19 10:12:59 +00:00
Marco Oliverio 9e9e504e63 fsp: remove unused stage2_params declaration 2023-09-19 10:12:59 +00:00
Marco Oliverio f4411f2fe4 x86: fsp: add more debugging 2023-09-19 10:12:59 +00:00
Marco Oliverio ce90b3b7dc x86: paging: add end of reserved memory check
if users call the mapping function without specifying a physical page to use,
then the function uses a page from a reserved pool. Check that we don't finish
them.
2023-09-19 10:12:59 +00:00
Marco Oliverio e95dad8dfe image.c: fix newline 2023-09-19 10:12:59 +00:00
Marco Oliverio d9d1492ec8 makefile: add inlcude/target.h dep to keytools target 2023-09-19 10:12:59 +00:00
Daniele Lacamera d79ae03fba Updated configuration for tgl target 2023-09-19 10:12:59 +00:00
Daniele Lacamera 686335bab5 Updated linker script files for tgl target
- keystore moved to the beginning of the flash space
- fixed .bss
2023-09-19 10:12:59 +00:00
Daniele Lacamera 5db2714eae Moved keystore section to the end of the flash 2023-09-19 10:12:59 +00:00
Daniele Lacamera e2a6899de3 Improved code readability; added comments 2023-09-19 09:33:16 +00:00
Marco Oliverio 6b4f0be37f x86: fsp: support .data and .bss in stage1 2023-09-19 09:33:16 +00:00
Daniele Lacamera 0babaae04a Stage1: allow signing with ecc384/sha384 2023-09-19 09:33:16 +00:00
Marco Oliverio e0d9e65892 x86: fsp: disable hyperthreading 2023-09-19 09:33:16 +00:00
Marco Oliverio ab69e27c17 x86: tgl: flash layout reorder 2023-09-19 09:33:16 +00:00
Marco Oliverio db806ebae7 x86_fsp: tgl: improve FPS download script to avoid repo re-cloning 2023-09-19 09:33:16 +00:00
Marco Oliverio 478afe33f3 x86_fsp: move cflags into options.mk 2023-09-19 09:33:16 +00:00
Marco Oliverio ae7221d321 fix: remove stale section include in stage1 linker script 2023-09-19 09:33:16 +00:00
Marco Oliverio 32b66f9368 ahci: move SATA memory areas in wolfboot .bss 2023-09-19 09:33:16 +00:00