microsoft / ms-tpm-20-ref

Reference implementation of the TCG Trusted Platform Module 2.0 specification.
Other
343 stars 133 forks source link

error: use of undeclared identifier 'tpmHashStateImport_SHA512' #65

Closed xiaoyuxlu closed 2 years ago

xiaoyuxlu commented 2 years ago

I try to enable ALG_SHA512, but I got compile error.

error: use of undeclared identifier 'tpmHashStateImport_SHA512'

Could you see if this definition is correct? Thanks.

https://github.com/microsoft/ms-tpm-20-ref/blob/e3c585d7113bae31924d6fd483e65a166a32098f/TPMCmd/tpm/include/Ossl/TpmToOsslHash.h#L195

jyao1 commented 2 years ago

It seems the #define tpmHashStateImport_SHA_512 memcpy should be #define tpmHashStateImport_SHA512 memcpy.

jyao1 commented 2 years ago

This issue is fixed now.