modules: tfm: add configuration for disabling the RNG module
A new configuration is available in TF-M, for disabling RNG independent from key derivation. Introduce a corresponding Kconfig option to control the RNG API enabling/disabling from Zephyr. Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no> Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
f7772c404e
commit
881b877eca
2 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,7 @@ set(TFM_VALID_PARTITIONS
|
|||
# List of all crypto modules that can be enabled/disabled
|
||||
# Corresponds to the *_MODULE_DISABLED configs in 'trusted-firmware-m/config/config_default.cmake'
|
||||
set(TFM_CRYPTO_MODULES
|
||||
CRYPTO_RNG_MODULE
|
||||
CRYPTO_KEY_MODULE
|
||||
CRYPTO_AEAD_MODULE
|
||||
CRYPTO_MAC_MODULE
|
||||
|
|
|
@ -7,6 +7,13 @@ if BUILD_WITH_TFM
|
|||
|
||||
if TFM_PARTITION_CRYPTO
|
||||
|
||||
config TFM_CRYPTO_RNG_MODULE_ENABLED
|
||||
bool "Enable random number generator crypto module"
|
||||
default y
|
||||
help
|
||||
Enables the random number generator module within the crypto partition.
|
||||
Unset this option if 'psa_generate_random' is not used.
|
||||
|
||||
config TFM_CRYPTO_KEY_MODULE_ENABLED
|
||||
bool "Enable KEY crypto module"
|
||||
default y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue