Browse Source

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>
pull/90645/head
Valerio Setti 2 months ago committed by Benjamin Cabé
parent
commit
31e38c83b3
  1. 5
      lib/uuid/Kconfig

5
lib/uuid/Kconfig

@ -25,6 +25,11 @@ config UUID_V5 @@ -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.

Loading…
Cancel
Save