Re: [PATCH RFC 1/4] lib: uuid: add UUID v5 support

2024-05-24 Thread Ilias Apalodimas
On Fri, 24 May 2024 at 15:20, Caleb Connolly wrote: > > > > On 24/05/2024 08:01, Ilias Apalodimas wrote: > > [...] > > > >> #include > >> #include > >> +#include > >> > >> int uuid_str_valid(const char *uuid) > >> { > >> int i, valid; > >> @@ -368,8 +369,40 @@ void uuid_bin_to_

Re: [PATCH RFC 1/4] lib: uuid: add UUID v5 support

2024-05-24 Thread Caleb Connolly
On 24/05/2024 08:01, Ilias Apalodimas wrote: [...] #include #include +#include int uuid_str_valid(const char *uuid) { int i, valid; @@ -368,8 +369,40 @@ void uuid_bin_to_str(const unsigned char *uuid_bin, char *uuid_str, } } } +#if CONFIG_IS

Re: [PATCH RFC 1/4] lib: uuid: add UUID v5 support

2024-05-23 Thread Ilias Apalodimas
[...] > #include > #include > +#include > > int uuid_str_valid(const char *uuid) > { > int i, valid; > @@ -368,8 +369,40 @@ void uuid_bin_to_str(const unsigned char *uuid_bin, char > *uuid_str, > } > } > } > > +#if CONFIG_IS_ENABLED(UUID_GEN_V5) > +void gen

[PATCH RFC 1/4] lib: uuid: add UUID v5 support

2024-04-26 Thread Caleb Connolly
Add support for generate 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