zephyr/lib/uuid/Kconfig
Valerio Setti 31e38c83b3 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>
2025-05-27 10:29:34 +02:00

46 lines
1.1 KiB
Plaintext

# Copyright (c) 2025, SECO Mind Srl
#
# SPDX-License-Identifier: Apache-2.0
menu "Universally Unique Identifier (UUID)"
config UUID
bool "UUID support [EXPERIMENTAL]"
select EXPERIMENTAL
help
Enable use of the UUID library.
config UUID_V4
bool "UUID version 4 generation support [EXPERIMENTAL]"
select EXPERIMENTAL
depends on UUID
depends on ENTROPY_GENERATOR
help
Enable generation of UUID v4.
config UUID_V5
bool "UUID version 5 generation support [EXPERIMENTAL]"
select EXPERIMENTAL
depends on UUID
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.
config UUID_BASE64
bool "UUID Base64 support [EXPERIMENTAL]"
select EXPERIMENTAL
depends on UUID
depends on BASE64
help
Enable conversion functions to write UUIDs in base 64
formats.
endmenu