[英]function 'C_Decrypt' returns 0x5 (CKR_GENERAL_ERROR) thrown by the Luna HSM
what could be the reason that Luna HSM is throwing the below exception: Luna HSM 抛出以下异常的原因可能是什么:
com.safenetinc.luna.exception.LunaCryptokiException: function 'C_Decrypt' returns 0x5 (CKR_GENERAL_ERROR)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2202) ~[na:na]
PS: it is able to load key using the provided key alias. PS:它可以使用提供的密钥别名加载密钥。
CKR_GENERAL_ERROR in PKCS #11 means a crypto operation request by a client failed to complete successfully. PKCS #11 中的 CKR_GENERAL_ERROR 表示客户端的加密操作请求未能成功完成。 This could have happened because the slot an application was using may have gone offline/disconnected/disappeared while a crypto operation was in progress.
这可能是因为应用程序正在使用的插槽可能在加密操作正在进行时脱机/断开/消失。 Or it may have encountered issues such as crash or a halt.
或者它可能遇到了崩溃或停止等问题。 In some cases you may see errors such as CKR_DEVICE_ERROR or CKR_TOKEN_NOT_PRESENT after CKR_GENERAL_ERROR.
在某些情况下,您可能会在 CKR_GENERAL_ERROR 之后看到 CKR_DEVICE_ERROR 或 CKR_TOKEN_NOT_PRESENT 等错误。
In your case, something may have happened to the slot while it was still busy processing C_Decrypt().在您的情况下,插槽可能在忙于处理 C_Decrypt() 时发生了一些事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.