From: Simon Glass Date: Sun, 18 Nov 2018 21:22:25 +0000 (-0700) Subject: tpm: Add a constant for the minimum supported digest size X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=07e127d85d9f22ac93f1e9da41a985013c4002ed;p=u-boot.git tpm: Add a constant for the minimum supported digest size When SHA1 is used we need 20 bytes for the digest size. Add a constant so that clients can make use of this, e.g. to allocate local buffers. Signed-off-by: Simon Glass --- diff --git a/include/tpm-common.h b/include/tpm-common.h index 5f8bc6bc52..449ad4c96e 100644 --- a/include/tpm-common.h +++ b/include/tpm-common.h @@ -26,6 +26,8 @@ enum tpm_duration { /* Max buffer size supported by our tpm */ #define TPM_DEV_BUFSIZE 1260 +#define TPM_PCR_MINIMUM_DIGEST_SIZE 20 + /** * enum tpm_version - The version of the TPM stack to be used * @TPM_V1: Use TPM v1.x stack