diff options
| author | Caleb Connolly <[email protected]> | 2024-08-30 13:34:32 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2024-09-12 17:35:37 +0200 |
| commit | 4c5e1ff31bf3d816412232ed7b4a2a581a50b262 (patch) | |
| tree | c0e74acd94291681619b32afaab0dbcadb1c9207 /lib/Kconfig | |
| parent | 3cc3bc08f4669e5952e3dc649dcd13a19ca2a038 (diff) | |
lib: uuid: add UUID v5 support
Add support for generating version 5 UUIDs, these are determistic and work
by hashing a "namespace" UUID together with some unique data. One intended
usecase is to allow for dynamically generate payload UUIDs for UEFI
capsule updates, so that supported boards can have their own UUIDs
without needing to hardcode them.
In addition, move the common bit twiddling code from gen_ran_uuid into a
separate function and rewrite it not to use clrsetbits (which is not
available when building as part of host tools).
Tests for this are added in an upcoming patch.
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Caleb Connolly <[email protected]>
Diffstat (limited to 'lib/Kconfig')
| -rw-r--r-- | lib/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 86919410cd7..1dd4f271595 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -73,6 +73,7 @@ config HAVE_PRIVATE_LIBGCC config LIB_UUID bool + select SHA1 config RANDOM_UUID bool "GPT Random UUID generation" |
