microsoft / ms-tpm-20-ref

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

TPM Exception: TPM Error - TPM_RC::RC_VER1 #109

Closed zongxuzhang closed 4 months ago

zongxuzhang commented 4 months ago

Hello. I created a new Cpp project in visual studio. After I connected to TPM and created the Tpm2 instance, I encountered an error when I called the method of the Tpm2 instance, for example, the GetRandom method. The output was displayed as TPM Exception: TPM Error - TPM_RC::RC_VER1. I would appreciate it very much if I could get your reply.

bradlitterell commented 4 months ago

Your question is far too ambiguous to answer. It's not even clear what you mean by "Tpm2 Instance". There is no Tpm2 class defined in this codebase.