tpm2: add tpm2_get_capability(), tpm2_cache_capabilities(), tpm2_capability_pcrs()
authorDan Streetman <ddstreet@ieee.org>
Mon, 2 Jan 2023 01:19:12 +0000 (20:19 -0500)
committerDan Streetman <ddstreet@ieee.org>
Mon, 5 Jun 2023 22:13:07 +0000 (18:13 -0400)
commit3a35d6cdd29f0303b9fffff2f34461b2be0cb1c7
treefc96e7bc64d4453b3cec2d79718cf8c0a27f8912
parent06390e22c92c626545ec4841c1dfdd25632efa08
tpm2: add tpm2_get_capability(), tpm2_cache_capabilities(), tpm2_capability_pcrs()

This adds a function to query specific capabilities from the TPM. That is then
used in a function to query the allocation of PCRs in the TPM, i.e. which PCR
banks and indexes are available, and caches the PCR allocation when the TPM
context is created.
src/shared/tpm2-util.c
src/shared/tpm2-util.h