]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
integritysetup: Add support for hmac-sha512 and wrapped key HMAC algorithms phmac...
authorLuca Boccassi <bluca@debian.org>
Fri, 14 Nov 2025 00:12:34 +0000 (00:12 +0000)
committerGitHub <noreply@github.com>
Fri, 14 Nov 2025 00:12:34 +0000 (00:12 +0000)
Currently the only supported integrity algorithm using HMAC is
`hmac-sha256`. Add `hmac-sha512` to the list of supported algorithms as
well.

Also add the `PHMAC` integrity algorithm to the list of supported
algorithms. The `PHMAC` algorithm is like the regular HMAC algorithm,
but it takes a wrapped key as input. A key for the `PHMAC` algorithm is
an opaque key blob, who's physical size has nothing to do with the
cryptographic size. Such a wrapped key can for example be a HSM
protected key. Currently PHMAC is only available for the s390x
architecture (Linux on IBM Z).

Support for PHMAC has just been added to the cryptsetup project via MR
https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/693 by commit

https://gitlab.com/cryptsetup/cryptsetup/-/commit/296eb39c60bd85228930caaea4bb1d2a766b7544

To allow automatic opening of integrity protected volumes that use PHMAC
via `/etc/integritytab`, this change in systemd's integritysetup tool is
needed as well.


Trivial merge