tpm2: change tpm2_calculate_policy_pcr(), tpm2_calculate_sealing_policy() to use...
authorDan Streetman <ddstreet@ieee.org>
Thu, 13 Jul 2023 02:14:18 +0000 (22:14 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 4 Aug 2023 14:57:07 +0000 (10:57 -0400)
commit6e8fb3ad5ff2dab03b9e2b189adaf463c06a8101
tree3f4c2f949f0f5d5edc4f0f62d8a7ad24149cdf31
parent75de375aafa78ccf2cd93a2c0a15d3bc4b0fe4b7
tpm2: change tpm2_calculate_policy_pcr(), tpm2_calculate_sealing_policy() to use Tpm2PCRValue array

An array of Tpm2PCRValue objects effectively replaces a TPML_PCR_SELECTION
object combined with an array of (properly ordered) TPM2B_DIGEST objects.

Also update tpm2_calculate_sealing_policy() pin parameter to boolean use_pin,
since the function does not need to know the pin value, only if a pin is being
used.
src/boot/measure.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c