chiark / gitweb /
sd-id128: add new sd_id128_get_machine_app_specific() API
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Nov 2016 16:07:46 +0000 (17:07 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
This adds an API for retrieving an app-specific machine ID to sd-id128.
Internally it calculates HMAC-SHA256 with an 128bit app-specific ID as payload
and the machine ID as key.

(An alternative would have been to use siphash for this, which is also
cryptographically strong. However, as it only generates 64bit hashes it's not
an obvious choice for generating 128bit IDs.)

Fixes: #4667

No differences found