]> git.ipfire.org Git - thirdparty/systemd.git/commit
libsystemd/sd-id128: use only internal hmac, remove khash/OpenSSL support
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 30 Sep 2021 10:01:45 +0000 (11:01 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 8 Oct 2021 12:11:00 +0000 (13:11 +0100)
commitec4afb4606e2b1ea44b0f32778a51c2a8be7eadd
tree9f64833e32716672694fd2bc37f7b63ae41b1c89
parent8d39bff4e36ee3996c5b087ee62ae0d33a82c837
libsystemd/sd-id128: use only internal hmac, remove khash/OpenSSL support

Using OpenSSL brings in an additional dependency for all users of
libsystemd.so even though it's just one API that makes use of it.

The khash implementation is awkward as it requires context switches and
computation inside the kernel, thus leaving the process.

Remove both from libsystemd.so, and use exclusively the internal hmac fallback.
While this is not optimized, the sd-id128 API is not used in
performance-critical contexts where hardware acceleration would make a
noticeable difference.
LICENSES/README.md
src/libsystemd/meson.build
src/libsystemd/sd-id128/sd-id128.c
src/test/test-id128.c