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
According to PKCS#11 spec, a CKR_GENERAL_ERROR is returned if some unrecoverable error has occurred:
CKR_GENERAL_ERROR: Some horrible, unrecoverable error has occurred. In the worst case, it is possible that the function only partially succeeded, and that the computer and/or token is in an inconsistent state.
In general, failure in decryption is most likely due to invalid ciphertext, and if so either CKR_ENCRYPTED_DATA_INVALID or CKR_ENCRYPTED_DATA_LEN_RANGE should be returned instead of CKR_GENERAL_ERROR since such decryption failure does not lead to unrecoverable error and does not cause the token to be in an inconsistent state.
The text was updated successfully, but these errors were encountered:
hansonchar
added a commit
to hansonchar/SoftHSMv2
that referenced
this issue
Dec 3, 2022
According to PKCS#11 spec, a
CKR_GENERAL_ERROR
is returned if some unrecoverable error has occurred:In general, failure in decryption is most likely due to invalid ciphertext, and if so either
CKR_ENCRYPTED_DATA_INVALID
orCKR_ENCRYPTED_DATA_LEN_RANGE
should be returned instead ofCKR_GENERAL_ERROR
since such decryption failure does not lead to unrecoverable error and does not cause the token to be in an inconsistent state.The text was updated successfully, but these errors were encountered: