]> git.baikalelectronics.ru Git - uboot.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)
commit86fe20fa58d393b4a6e2d9e2c1396eb50d5e90e5
tree43bb1198016b8d21d52696b3cd4075b6faea6a11
parente7f880354a7d0bc3d4817d8c3d5221c0d5adbed9
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