Can't perform RSA encryption/decryption with persistent key, using encryption session #133
Unanswered
alexey3nemckovich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description of the situation by steps:
Sample of my code below
`
This row leads to error BAD_AUTH. What am I doing wrong?
auto enc = tpm[sess].RSA_Encrypt(persistentHandle, dataToEncrypt, TPMS_NULL_ASYM_SCHEME(), null);
When I perform encryption with not persistent key handle, using encryption session, everything works fine.
auto enc = tpm[sess].RSA_Encrypt(keyHandle, dataToEncrypt, TPMS_NULL_ASYM_SCHEME(), null);
Beta Was this translation helpful? Give feedback.
All reactions