]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add tpm2_policy_auth_value()
authorDan Streetman <ddstreet@ieee.org>
Fri, 9 Dec 2022 19:59:05 +0000 (14:59 -0500)
committerDan Streetman <ddstreet@ieee.org>
Fri, 26 May 2023 15:11:50 +0000 (11:11 -0400)
commit8a716354bb97c9a220cf95aef0e78f66abd33584
treef444ce159bafb3f909532e66d10e78874c75ccbd
parentdcbc4674e3daea2d34d02de5a76d4a19bca7545f
tpm2: add tpm2_policy_auth_value()

This adds functions to get the digest for a PolicyAuthValue 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 PolicyAuthValue with an existing session.
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c