Skip to content

Commit 02f76ba

Browse files
hakonfamcarlescufi
authored andcommitted
[nrf fromlist] 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. Ref: NCSDK-10031 Signed-off-by: Håkon Øye Amundsen <[email protected]> Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent fb22d53 commit 02f76ba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set(TFM_VALID_PARTITIONS
1717
# List of all crypto modules that can be enabled/disabled
1818
# Corresponds to the *_MODULE_DISABLED configs in 'trusted-firmware-m/config/config_default.cmake'
1919
set(TFM_CRYPTO_MODULES
20+
CRYPTO_RNG_MODULE
2021
CRYPTO_KEY_MODULE
2122
CRYPTO_AEAD_MODULE
2223
CRYPTO_MAC_MODULE

modules/trusted-firmware-m/Kconfig.tfm.crypto_modules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ if BUILD_WITH_TFM
77

88
if TFM_PARTITION_CRYPTO
99

10+
config TFM_CRYPTO_RNG_MODULE_ENABLED
11+
bool "Enable random number generator crypto module"
12+
default y
13+
help
14+
Enables the random number generator module within the crypto partition.
15+
Unset this option if 'psa_generate_random' is not used.
16+
1017
config TFM_CRYPTO_KEY_MODULE_ENABLED
1118
bool "Enable KEY crypto module"
1219
default y

0 commit comments

Comments
 (0)