On Di, 08.01.19 10:11, Richard Hughes (hughsi...@gmail.com) wrote:

> On Tue, 8 Jan 2019 at 08:57, Lennart Poettering <mzerq...@0pointer.de> wrote:
> > Yes, Tom's proposal makes sense. Calculate the UUID you submit as
> >   HMAC(machined_id, CONCAT(fixedappuuid, unixtime/432000))
>
> Out of interest, how is using a HMAC different to just using the
> machine-id appended with a salt, sha256'd?

I am not sure how you'd define "salt" in this case. Randomly generated
and stored somewhere? i mean, storing something somewhere is what
should really be avoided I think.

Also, you want to use standard primitives, and a HMAC is one that is
designed for purposes like this. For the reasons why a HMAC is
constructed the way it is, read the wikipedia page.

Lennart

--
Lennart Poettering, Red Hat
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to