]> git.proxmox.com Git - libtpms.git/commitdiff
tpm2: enable sha512 (breaks compatiblity)
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 22 May 2018 13:11:45 +0000 (09:11 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 15 Jun 2018 22:07:49 +0000 (18:07 -0400)
Enable SHA512. Since the TPM 2 expects to see PCR values for
the SHA512 bank in some of its structures, this breaks
compatibility with existing state files.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/tpm2/Implementation.h

index 6a10e955defec394ece72a3c331584546254d016..05e2a0b379e273c54c894ae4ca3880fede92de7e 100644 (file)
 #define  ALG_KEYEDHASH         ALG_YES
 #define  ALG_SHA256            ALG_YES
 #define  ALG_SHA384            ALG_YES
-#define  ALG_SHA512            ALG_NO
+#define  ALG_SHA512            ALG_YES
 #define  ALG_SM3_256           ALG_NO
 #define  ALG_SM4               ALG_NO
 #define  ALG_RSASSA            (ALG_YES*ALG_RSA)