summaryrefslogtreecommitdiff
path: root/src/security/vboot
diff options
context:
space:
mode:
authorYi Chou <yich@google.com>2023-09-22 11:11:22 +0800
committerJulius Werner <jwerner@chromium.org>2023-09-23 01:15:13 +0000
commit97a48961e80632f8f53b3fcdd52920f832716775 (patch)
treed1aab1263afc7948e90c596d9fa9262d6cda03ec /src/security/vboot
parent62787d2887999e3c7446d12ee976894efed4c3a1 (diff)
vboot: Remove the unnecessary PCR digest check
This PCR digest length check is no longer necessary. Signed-off-by: Yi Chou <yich@google.com> Change-Id: I256938c69be7787f5c8fca3e633ac93a69368452 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78084 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/security/vboot')
-rw-r--r--src/security/vboot/tpm_common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/security/vboot/tpm_common.c b/src/security/vboot/tpm_common.c
index 05685ad926..1f86f87685 100644
--- a/src/security/vboot/tpm_common.c
+++ b/src/security/vboot/tpm_common.c
@@ -30,8 +30,6 @@ vb2_error_t vboot_extend_pcr(struct vb2_context *ctx, int pcr,
rv = vb2api_get_pcr_digest(ctx, which_digest, buffer, &size);
if (rv != VB2_SUCCESS)
return rv;
- if (size < TPM_PCR_MINIMUM_DIGEST_SIZE)
- return VB2_ERROR_UNKNOWN;
/*
* On TPM 1.2, all PCRs are intended for use with SHA1. We truncate our