Skip to content

Commit 31e38c8

Browse files
valeriosettikartben
authored andcommitted
lib: uuid: do not support UUID_v5 on TF-M platforms
When TF-M is enabled, Mbed TLS's MD module (which is used to generate v5 UUIDs) will dispacth hash operations to TF-M. Unfortunately TF-M does not support SHA-1 (because it's a weak algorithm) so the computation will fail. Signed-off-by: Valerio Setti <[email protected]>
1 parent 767772a commit 31e38c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/uuid/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ config UUID_V5
2525
depends on MBEDTLS
2626
depends on MBEDTLS_MD
2727
depends on MBEDTLS_SHA1
28+
# When TF-M is enabled, Mbed TLS's MD module (which is used to generate
29+
# v5 UUIDs) will dispacth hash operations to TF-M. Unfortunately TF-M
30+
# does not support SHA-1 (because it's a weak algorithm) so the
31+
# computation will fail.
32+
depends on !BUILD_WITH_TFM
2833
help
2934
Enable generation of UUID v5.
3035

0 commit comments

Comments
 (0)