]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: change tpm2_unseal() to accept Tpm2Context instead of device string
authorDan Streetman <ddstreet@ieee.org>
Thu, 31 Aug 2023 13:10:40 +0000 (09:10 -0400)
committerDan Streetman <ddstreet@ieee.org>
Tue, 3 Oct 2023 16:56:55 +0000 (12:56 -0400)
commitdb7fdf152b5811c2d83e967010bcde8d435e5bc4
tree9a10f80d0903d006314451e93c56366b5ecbc730
parent7014006906113acf35d4927ef7f287ddaa935fca
tpm2: change tpm2_unseal() to accept Tpm2Context instead of device string

This matches the change to tpm2_seal(), which now accepts a Tpm2Context instead
of a device string.

This also allows using the same TPM context for sealing and unsealing, which
will be required by (future) test code when sealing/unsealing using a transient
key.
src/cryptenroll/cryptenroll-tpm2.c
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
src/cryptsetup/cryptsetup-tpm2.c
src/shared/creds-util.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h