]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add tpm2_digest_*() functions
authorDan Streetman <ddstreet@ieee.org>
Wed, 14 Dec 2022 15:46:13 +0000 (10:46 -0500)
committerDan Streetman <ddstreet@ieee.org>
Fri, 26 May 2023 15:06:20 +0000 (11:06 -0400)
commitda92d39a8577e792075009782d419b423414ad6e
tree69ba474fab977af854a3cd139b99a68c0c7e907a
parent5287b3a87a474bcab4c96ba093b7a9750f4dcfa6
tpm2: add tpm2_digest_*() functions

These functions allow extending (or initializing) a TPM2B_DIGEST with additional
data, using a specified hash operation. This is needed to perform hash
calculations instead of relying on the TPM to perform the calculations in
trial sessions.
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c