From: Lennart Poettering Date: Thu, 17 Nov 2016 16:07:46 +0000 (+0100) Subject: sd-id128: add new sd_id128_get_machine_app_specific() API X-Git-Tag: v233.3~157 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e0e3ee7aeb2d4043149a728e431a9dda949ceed5;hp=e0e3ee7aeb2d4043149a728e431a9dda949ceed5;p=elogind.git sd-id128: add new sd_id128_get_machine_app_specific() API 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 ---