tpm2: add tpm2_calculate_sealing_policy()
authorDan Streetman <ddstreet@ieee.org>
Thu, 15 Dec 2022 17:56:35 +0000 (12:56 -0500)
committerDan Streetman <ddstreet@ieee.org>
Fri, 26 May 2023 15:12:22 +0000 (11:12 -0400)
commitd9a1f1a724a08defb70dbc6f44aa578983a66ac8
treede364436e921f04d5ad6255670f79f9cef39326f
parent524cef3ff5e52ab8683a5c95c519d598dd3d0726
tpm2: add tpm2_calculate_sealing_policy()

This adds a function to fully calculate the authPolicy needed to seal a secret,
and updates tpm2_seal() to use the new function instead of a trial policy.
src/shared/tpm2-util.c