From effd551cfbcb7f2544dbc5be51e5227283befb60 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 22 May 2018 09:11:45 -0400 Subject: [PATCH] tpm2: enable sha512 (breaks compatiblity) 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 --- src/tpm2/Implementation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpm2/Implementation.h b/src/tpm2/Implementation.h index 6a10e955..05e2a0b3 100644 --- a/src/tpm2/Implementation.h +++ b/src/tpm2/Implementation.h @@ -117,7 +117,7 @@ #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)