[PATCH v2 10/10] sandbox: tpm: Support extending a PCR multiple times
Simon Glass
sjg at chromium.org
Sat Jul 24 23:11:57 CEST 2021
It is fairly easy to handle this case and it makes the emulator more
useful, since PCRs are commonly extended several times.
Add support for this, using U-Boot's sha256 support.
For now sandbox only supports a single PCR, but that is enough for the
tests that currently exist.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Drop the constant sandbox_extended_once_pcr since we can calculate it
- Update the commit message to explain that there is only one PCR
drivers/tpm/tpm2_tis_sandbox.c | 24 ++++++++++--------------
test/py/tests/test_tpm2.py | 18 +++++++++++++++++-
2 files changed, 27 insertions(+), 15 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list