diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2018-05-25 18:02:30 -0700 |
---|---|---|
committer | Philip Tricca <philip.b.tricca@intel.com> | 2018-06-05 09:03:51 -0700 |
commit | 167e7af2c0a57f71e44cc61df2bd6e2e33508d47 (patch) | |
tree | 77513870ccc4c79a11262942310097b34f5ce7ec /include | |
parent | 63f20a50df04b48479dd366c3d85bc3e1657a4a0 (diff) | |
download | tpm2-tss-167e7af2c0a57f71e44cc61df2bd6e2e33508d47.tar.gz |
sapi: update TPM2_NUM_PCR_BANKS
TPM2_NUM_PCR_BANKS needs to be equal to the number of supported
hash algorithms. Currently 8 hash algorithms are defined by the spec:
SHA1, SHA256, SHA384, SHA512, SM3_256, SHA3_256, SHA3_384, SHA3_512,
but the specification defines it to 16.
Fixes: #1026
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tss2/tss2_tpm2_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tss2/tss2_tpm2_types.h b/include/tss2/tss2_tpm2_types.h index 1f57c57a..c7f10bd2 100644 --- a/include/tss2/tss2_tpm2_types.h +++ b/include/tss2/tss2_tpm2_types.h @@ -41,7 +41,7 @@ #define TPM2_MAX_SESSION_NUM 3 /* this is the current maximum value */ /* TPM constants for buffer sizes */ -#define TPM2_NUM_PCR_BANKS 3 +#define TPM2_NUM_PCR_BANKS 16 #define TPM2_MAX_DIGEST_BUFFER 1024 #define TPM2_MAX_NV_BUFFER_SIZE 2048 #define TPM2_MAX_PCRS 32 |