zephyr/modules/trusted-firmware-m
Tomi Fontanilles 1eaa14090c modules: tf-m: support MCUboot signature types other than RSA-3072
With TF-M updated to 2.1.0 it now makes the signature type default
to EC-P256 for the mps2/an521/cpu0/ns board.
So far Zephyr had only supported and assumed that it was RSA-3072.

This brings support for other signature types, and changes the global
default to EC-P256.
The switch from RSA-3072 to EC-P256 reduces the flash usage by ~3.3KB
while having a negligible impact on RAM usage (increase of ~70 bytes)
when compiling the tfm_psa_test sample on mps2/an521/cpu0/ns and
nrf9160dk/nrf9160/ns without explicit optimizations.

The TFM_KEY_FILE_{S,NS} Kconfig options are moved inside an
`if TFM_BL2` as they are only used if MCUboot is included in TF-M.

The TF-M CMake variables MCUBOOT_KEY_{S,NS} are now set so that it's
possible to use signing keys located elsewhere than the default
location.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-05-29 04:56:40 -07:00
..
interface tfm: Use PSA error codes instead of TFM error codes 2024-01-17 16:52:52 +01:00
nordic build: namespace autoconf.h with zephyr/ 2024-05-28 22:03:55 +02:00
psa tfm: Fix zephyr-sdk toolchain variant integration 2021-10-07 14:02:40 -05:00
src modules: tf-m: Remove building of PSA arch tests 2024-01-17 16:52:52 +01:00
CMakeLists.txt modules: tf-m: support MCUboot signature types other than RSA-3072 2024-05-29 04:56:40 -07:00
Kconfig modules: tfm: remove redundant if BUILD_WITH_TFM guard in Kconfig 2021-06-11 16:13:57 +02:00
Kconfig.tfm modules: tf-m: support MCUboot signature types other than RSA-3072 2024-05-29 04:56:40 -07:00
Kconfig.tfm.crypto_modules tfm: Fix help text for crypto key module functionality 2023-07-25 09:15:32 +02:00
Kconfig.tfm.partitions modules: tf-m: restore check on CONFIG_TFM_PARTITION_INITIAL_ATTESTATION 2024-05-29 04:56:40 -07:00