简体   繁体   English

function 'C_Decrypt' 返回 Luna HSM 抛出的 0x5 (CKR_GENERAL_ERROR)

[英]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.

相关问题 我的机器睡觉后无法通过Java应用程序与智能卡签名:获取PKCS11Exception:CKR_GENERAL_ERROR - Unable to sign with Smartcard through Java app after my machine has has slept: getting a PKCS11Exception: CKR_GENERAL_ERROR 如何使用位于 Java 中 Safenet HSM Luna SA 设备的公钥/私钥加密/解密数据 - How to encrypt/decrypt data using public/private keys located at Safenet HSM Luna SA device in java Safenet Luna HSM是否具有接收一种类型的密码并返回另一种类型的密码的功能或方式? - Does Safenet Luna HSM have a function or way to receive one type of cryptogram and return another type of cryptogram? 如何在Safenet Luna SA HSM中验证客户? - How clients are verified in Safenet Luna SA HSM? 使用 Java 的 Luna HSM 的 EDDSA 签名 - EDDSA Signature with Luna HSM using Java 如何在 Network Luna HSM 上为 AES 密钥设置/创建密钥值? - How to Set/Create a Key Value for AES Secret Key on Network Luna HSM? 解密函数仅返回部分字符串,而不返回整个值 - Decrypt function only returns partial string and not the entire value PKCS11Exception:CKR_KEY_FUNCTION_NOT_PERMITTED - PKCS11Exception: CKR_KEY_FUNCTION_NOT_PERMITTED 如何从 Thales HSM 8000 获得 X509Certificate? - How to get X509Certificate from Thales HSM 8000? Visual C#独立解密错误:要解密的数据长度无效 - Visual C# Independant Decryption Error: length of data to decrypt is invalid
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM