Skip to content

Commit 8645035

Browse files
SebastianBoerlubos
authored andcommitted
tfm: Use CTR instead of HMAC for RNG
We disable MBEDTLS_CTR_DRBG_C instead of MBEDTLS_HMAC_DRBG_C when building for TF-M. We have flash usage issues and HMAC uses much less flash. It is not clear if there are any users that require CTR and will be adversely affected by this. Signed-off-by: Sebastian Bøe <[email protected]>
1 parent e81ae47 commit 8645035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/trusted-firmware-m/Kconfig.mbedtls_minimal.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ config MBEDTLS_DHM_C
2121
config MBEDTLS_ECP_C
2222
default n
2323

24-
config MBEDTLS_HMAC_DRBG_C
24+
config MBEDTLS_CTR_DRBG_C
2525
default n
2626

2727
config MBEDTLS_CIPHER_MODE_CBC

0 commit comments

Comments
 (0)