]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: tpm: Support extending a PCR multiple times
authorSimon Glass <sjg@chromium.org>
Sun, 18 Jul 2021 20:18:06 +0000 (14:18 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Aug 2021 15:05:24 +0000 (09:05 -0600)
commit1c6608bd92acfa3a4c269ccdcb92905a4e512813
tree43bb1198016b8d21d52696b3cd4075b6faea6a11
parent9f0b53564f035743a2ce60636cadd17c97937dee
sandbox: tpm: Support extending a PCR multiple times

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@chromium.org>
drivers/tpm/tpm2_tis_sandbox.c
test/py/tests/test_tpm2.py