tpm: add PCR allocate into the eventlog handling
authorRaymond Mao <raymond.mao@linaro.org>
Mon, 27 Jan 2025 14:58:49 +0000 (06:58 -0800)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 28 Jan 2025 06:58:41 +0000 (08:58 +0200)
commitd487c3283c83d1314f9736bdfc69391dbc347154
tree313618921c9f9d05565f72f40daeb52916763d5c
parentb6228b2e785df93fa4a1176d374976a9e2205924
tpm: add PCR allocate into the eventlog handling

Get eventlog bank mask when parsing the eventlog from previous
boot stage and invoke PCR allocate function based on it.
PCR allocate will be proceeded if any dismatches observed among
the active, supportted and eventlog bank masks to re-configurate
the TPM with the proper algorithms and reboot the system.

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