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>
This commit is contained in:
Yi Chou 2023-09-22 11:11:22 +08:00 committed by Julius Werner
parent 62787d2887
commit 97a48961e8
1 changed files with 0 additions and 2 deletions

View File

@ -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); rv = vb2api_get_pcr_digest(ctx, which_digest, buffer, &size);
if (rv != VB2_SUCCESS) if (rv != VB2_SUCCESS)
return rv; 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 * On TPM 1.2, all PCRs are intended for use with SHA1. We truncate our