diff options
| author | Tom Rini <[email protected]> | 2021-11-30 08:03:21 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-11-30 08:03:21 -0500 |
| commit | ce29c52891d2265f854119c9cc6defcc70b54c07 (patch) | |
| tree | a6d0c08733eb50431342d440152754baf19fba2e /cmd | |
| parent | ade37460a944aed36ae6ee634c4d4a9a22690461 (diff) | |
| parent | c0d9bb0b4a747a7ec481b2369391ca8f53e50bc9 (diff) | |
Merge tag 'efi-2022-01-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-01-rc4
Documentation:
* describe how to enable Virtio RNG on QEMU ARM
UEFI:
* enable testing the TCG2 protocol
* support TPM event log passed from firmware
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/tpm-v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/tpm-v2.c b/cmd/tpm-v2.c index daae91100a2..4ea5f9f094f 100644 --- a/cmd/tpm-v2.c +++ b/cmd/tpm-v2.c @@ -151,7 +151,8 @@ static int do_tpm_pcr_read(struct cmd_tbl *cmdtp, int flag, int argc, data = map_sysmem(simple_strtoul(argv[2], NULL, 0), 0); - rc = tpm2_pcr_read(dev, index, priv->pcr_select_min, data, &updates); + rc = tpm2_pcr_read(dev, index, priv->pcr_select_min, TPM2_ALG_SHA256, + data, TPM2_DIGEST_LEN, &updates); if (!rc) { printf("PCR #%u content (%u known updates):\n", index, updates); print_byte_string(data, TPM2_DIGEST_LEN); |
