'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:

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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source