-
Hello, I want to set the policies created by TSS.CPP inside a nrcypt key before finalizing the key so that those policies are set for that ncrypt key. As documented for "Platform Crypto Provider", I can retrieve the platform handle and Key handle from ncrypt apis i.e reading properties NCRYPT_PCP_PLATFORMHANDLE_PROPERTY and NCRYPT_PCP_PLATFORMHANDLE_PROPERTY and then I can use set those handles inside TSS.CPP implementation. This works well for existing Ncrypt keys. but then NcryptFinalizekey() returns error after that. Can anybody help me on achieving the same ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the error. The PolicyTree.GetPolicyDigest(TPM_ALG_ID::SHA1)) should be SH256. |
Beta Was this translation helpful? Give feedback.
I found the error. The PolicyTree.GetPolicyDigest(TPM_ALG_ID::SHA1)) should be SH256.