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 <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2025-05-23 09:43:37 +02:00 committed by Benjamin Cabé
commit 31e38c83b3

View file

@ -25,6 +25,11 @@ config UUID_V5
depends on MBEDTLS
depends on MBEDTLS_MD
depends on MBEDTLS_SHA1
# 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.
depends on !BUILD_WITH_TFM
help
Enable generation of UUID v5.