1# Copyright (c) 2025, SECO Mind Srl
2#
3# SPDX-License-Identifier: Apache-2.0
4
5menu "Universally Unique Identifier (UUID)"
6
7config UUID
8	bool "UUID support [EXPERIMENTAL]"
9	select EXPERIMENTAL
10	help
11	  Enable use of the UUID library.
12
13config UUID_V4
14	bool "UUID version 4 generation support [EXPERIMENTAL]"
15	select EXPERIMENTAL
16	depends on UUID
17	depends on ENTROPY_GENERATOR
18	help
19	  Enable generation of UUID v4.
20
21config UUID_V5
22	bool "UUID version 5 generation support [EXPERIMENTAL]"
23	select EXPERIMENTAL
24	depends on UUID
25	depends on MBEDTLS
26	depends on MBEDTLS_MD
27	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
33	help
34	  Enable generation of UUID v5.
35
36config UUID_BASE64
37	bool "UUID Base64 support [EXPERIMENTAL]"
38	select EXPERIMENTAL
39	depends on UUID
40	depends on BASE64
41	help
42	  Enable conversion functions to write UUIDs in base 64
43	  formats.
44
45endmenu
46