tpm: Simplify tcg2_create_digest()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 24 Dec 2024 16:01:10 +0000 (08:01 -0800)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 7 Jan 2025 13:45:51 +0000 (15:45 +0200)
commitc575f28c8c33adc68ec1313d34b312c5be23d94c
tree4c3de612dd89732a6ba67ce63b41f4bee933cab1
parentffdbf775e71b8160a37ca65bfa38ed037807dbf2
tpm: Simplify tcg2_create_digest()

A previous patch is storing the active PCR banks on the TPM private
data. Instead of parsing them on the fly use the stored values.
This allows us to simplify our checks during the log creation and
parsing.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/tpm_tcg2.c