]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add tpm2_policy_pcr()
authorDan Streetman <ddstreet@ieee.org>
Thu, 8 Dec 2022 22:56:11 +0000 (17:56 -0500)
committerDan Streetman <ddstreet@ieee.org>
Fri, 26 May 2023 15:11:25 +0000 (11:11 -0400)
commitdcbc4674e3daea2d34d02de5a76d4a19bca7545f
tree2304ff1d9696632282d978edf2e3fb2ef5169ad0
parentc648a4b85e9ef71098afba3c7ac36a31f9372a4d
tpm2: add tpm2_policy_pcr()

This adds functions to get the digest for a PolicyPCR operation. For building
a policy hash, this provides a function to calculate the hash; and for building
a policy hash to satisfy the authPolicy for an existing object, this provides a
function to perform PolicyPCR with an existing session.
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c