
On Wed, 2 Aug 2023 at 02:35, Julia Daxenberger julia.daxenberger@infineon.com wrote:
Add TPM2_GetTestResult command support and change the command file and the help accordingly. Add Python tests and sandbox driver functionality.
The TPM2_GetTestResult command is performed after the TPM2_SelfTest command and returns manufacturer-specific information regarding the results of the self-test and an indication of the test status.
Signed-off-by: Julia Daxenberger julia.daxenberger@infineon.com
Changes in v2:
- Apply style changes suggested by Ilias Apalodimas
- Move test cases reliant on restart_uboot() to separate patch in
response to Simon Glass sjg@chromium.org
- Change test result data to be read directly from the response
- Fix minor style issues
cmd/tpm-v2.c | 60 +++++++++++++++++++++ drivers/tpm/tpm2_tis_sandbox.c | 51 +++++++++++++++++- include/tpm-v2.h | 23 ++++++++ lib/tpm-v2.c | 97 ++++++++++++++++++++++++++++++++++ test/py/tests/test_tpm2.py | 22 ++++++++ 5 files changed, 252 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org