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:
parent
62787d2887
commit
97a48961e8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue