summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_variable.c
diff options
context:
space:
mode:
authorCaleb Connolly <caleb.connolly@linaro.org>2024-08-30 13:34:32 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-09-12 17:35:37 +0200
commit4c5e1ff31bf3d816412232ed7b4a2a581a50b262 (patch)
treec0e74acd94291681619b32afaab0dbcadb1c9207 /lib/efi_loader/efi_variable.c
parent3cc3bc08f4669e5952e3dc649dcd13a19ca2a038 (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 <ilias.apalodimas@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
0 files changed, 0 insertions, 0 deletions