You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a multithreaded application and I'm currently having some trouble with a CKR_OPERATION_NOT_INITIALIZED error thrown in the last line of this block:
As far as I understand, this error is thrown when the encryption or decryption operation is not initialized and from what I've read, an operation stays initialized until data is decrypted. My best guess is that the following is happening:
Thread A
Thread B
Initialized
C_DecryptInit
Yes
C_DecryptInit
Yes
C_Decrypt
No
C_Decrypt
⚡
Thus a lock would be required to make the call to Session.Encrypt / Session.Decrypt thread safe.
The text was updated successfully, but these errors were encountered:
I'm working on a multithreaded application and I'm currently having some trouble with a CKR_OPERATION_NOT_INITIALIZED error thrown in the last line of this block:
Pkcs11Interop/src/Pkcs11Interop/HighLevelAPI41/Session.cs
Lines 991 to 998 in 47e4e17
Screenshot
As far as I understand, this error is thrown when the encryption or decryption operation is not initialized and from what I've read, an operation stays initialized until data is decrypted. My best guess is that the following is happening:
Thus a lock would be required to make the call to
Session.Encrypt
/Session.Decrypt
thread safe.The text was updated successfully, but these errors were encountered: