From 97a48961e80632f8f53b3fcdd52920f832716775 Mon Sep 17 00:00:00 2001 From: Yi Chou Date: Fri, 22 Sep 2023 11:11:22 +0800 Subject: [PATCH] vboot: Remove the unnecessary PCR digest check This PCR digest length check is no longer necessary. Signed-off-by: Yi Chou Change-Id: I256938c69be7787f5c8fca3e633ac93a69368452 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78084 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/security/vboot/tpm_common.c | 2 -- 1 file changed, 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