]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: move policy calculation out of tpm2_seal()
authorDan Streetman <ddstreet@ieee.org>
Wed, 12 Jul 2023 21:35:54 +0000 (17:35 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 4 Aug 2023 15:20:22 +0000 (11:20 -0400)
commit9e4379945b74ee7920fe375be0bcb04d8ef53873
tree478508e67c611cefebd184e82f0262362d61bcc4
parente3acb4d24c68291376b11bea5787112978e2775f
tpm2: move policy calculation out of tpm2_seal()

Move the calculation of the sealed object policy hash out of the tpm2_seal()
function. Instead, callers of tpm2_seal() can directly call
tpm2_calculate_sealing_policy() and then provide the policy hash to
tpm2_seal().
src/cryptenroll/cryptenroll-tpm2.c
src/cryptenroll/cryptenroll-tpm2.h
src/cryptenroll/cryptenroll.c
src/partition/repart.c
src/shared/creds-util.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h