]> Git Repo - u-boot.git/commit
test: use a non system PCR for testing PCR extend
authorIlias Apalodimas <[email protected]>
Tue, 24 Oct 2023 15:43:54 +0000 (10:43 -0500)
committerIlias Apalodimas <[email protected]>
Fri, 27 Oct 2023 10:17:21 +0000 (13:17 +0300)
commit539e2f7c1011549a5a98a59b506c6d3927549b03
treeb32223d6bd46533e5b75be28d20facccd06eda26
parente9fc018a558ea931e599453e925d6cb5690112cb
test: use a non system PCR for testing PCR extend

We currently use PCR 0 for testing the PCR read/extend functionality in
our selftests.  How ever those PCRs are defined by the TCG spec for
platform use.  For example if the tests run *after* the efi subsystem
initialization, which extends PCRs 0 & 7 it will give a false positive.

So let's switch over to a PCR which is more suitable and is defined for
OS use.  It's worth noting that we are using PCR10 here, since PCR9 is
used internally by U-Boot if we choose to measure the loaded DTB

Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
test/py/tests/test_tpm2.py
This page took 0.03558 seconds and 4 git commands to generate.