mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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 <sjg@chromium.org>
This commit is contained in:
parent
33810b4e7d
commit
07e127d85d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue