Re: [PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-06-05 Thread Caleb Connolly
Hi Simon, On 05/06/2024 04:13, Simon Glass wrote: Hi Caleb, On Fri, 31 May 2024 at 07:50, Caleb Connolly wrote: Add support for generating version 5 UUIDs, these are determistic and work spelling by hashing a "namespace" UUID together with some unique data. One intended usecase is to all

Re: [PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-06-04 Thread Heinrich Schuchardt
On 5/31/24 15:50, Caleb Connolly wrote: 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 boar

Re: [PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-06-04 Thread Simon Glass
Hi Caleb, On Fri, 31 May 2024 at 07:50, Caleb Connolly wrote: > > Add support for generating version 5 UUIDs, these are determistic and work spelling > by hashing a "namespace" UUID together with some unique data. One intended > usecase is to allow for dynamically generate payload UUIDs for UEF

Re: [PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-05-31 Thread Ilias Apalodimas
Hi Caleb, [...] > +#if IS_ENABLED(CONFIG_UUID_GEN_V5) > +void gen_uuid_v5(const struct uuid *namespace, struct uuid *uuid, ...) > +{ > + sha1_context ctx; > + va_list args; > + const uint8_t *data; > + uint8_t hash[SHA1_SUM_LEN]; > + uint32_t tmp; > + > + sha1_

[PATCH v3 1/7] lib: uuid: add UUID v5 support

2024-05-31 Thread Caleb Connolly
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 needin