Cryptographic Module and Token Return Codes
The following table summarizes HSM error codes:
HSM Error | Hex Code | PKCS#11 or SFNT Defined CKR Error |
---|---|---|
LUNA_RET_OK | 0x00000000 | CKR_OK |
LUNA_RET_CANCEL | 0x00010000 | CKR_CANCEL |
LUNA_RET_FLAGS_INVALID | 0x00040000 | CKR_FLAGS_INVALID, removed from v2.0 |
LUNA_RET_TOKEN_NOT_PRESENT | 0x00E00000 | CKR_TOKEN_NOT_PRESENT |
LUNA_RET_FORMER_INVALID_ENTRY_TYPE | 0x00300130 | CKR_DEVICE_ERROR |
LUNA_RET_SP_TX_ERROR | 0x00300131 | CKR_DEVICE_ERROR |
LUNA_RET_SP_RX_ERROR | 0x00300132 | CKR_DEVICE_ERROR |
LUNA_RET_PED_ID_INVALID | 0x00300140 | CKR_DEVICE_ERROR |
LUNA_RET_PED_UNSUPPORTED_PROTOCOL | 0x00300141 | CKR_DEVICE_ERROR |
LUNA_RET_PED_UNPLUGGED | 0x00300142 | CKR_PED_UNPLUGGED |
LUNA_RET_PED_ERROR | 0x00300144 | CKR_DEVICE_ERROR |
LUNA_RET_PED_UNSUPPORTED_CRYPTO_PROTOCOL | 0x00300145 | CKR_DEVICE_ERROR |
LUNA_RET_PED_DEK_INVALID | 0x00300146 | CKR_DEVICE_ERROR |
LUNA_RET_PED_CLIENT_NOT_RUNNING | 0x00300147 | CKR_PED_CLIENT_NOT_RUNNING |
LUNA_RET_CL_ALIGNMENT_ERROR | 0x00300200 | CKR_DEVICE_ERROR |
LUNA_RET_CL_QUEUE_LOCATION_ERROR | 0x00300201 | CKR_DEVICE_ERROR |
LUNA_RET_CL_QUEUE_OVERLAP_ERROR | 0x00300202 | CKR_DEVICE_ERROR |
LUNA_RET_CL_TRANSMISSION_ERROR | 0x00300203 | CKR_DEVICE_ERROR |
LUNA_RET_CL_NO_TRANSMISSION | 0x00300204 | CKR_DEVICE_ERROR |
LUNA_RET_CL_COMMAND_MALFORMED | 0x00300205 | CKR_DEVICE_ERROR |
LUNA_RET_CL_MAILBOXES_NOT_AVAILABLE | 0x00300206 | CKR_DEVICE_ERROR |
LUNA_RET_MM_NOT_ENOUGH_MEMORY | 0x00310000 | CKR_DEVICE_MEMORY † |
LUNA_RET_MM_INVALID_HANDLE | 0x00310001 | CKR_DEVICE_MEMORY † |
LUNA_RET_MM_USAGE_ALREADY_SET | 0x00310002 | CKR_DEVICE_MEMORY † |
LUNA_RET_MM_ACCESS_OUTSIDE_ALLOCATION_RANGE | 0x00310003 | CKR_DEVICE_MEMORY † |
LUNA_RET_MM_INVALID_USAGE | 0x00310004 | CKR_DEVICE_MEMORY † |
LUNA_RET_MM_ITERATOR_PAST_END | 0x00310005 | CKR_DEVICE_MEMORY † |
LUNA_RET_MM_FATAL_ERROR | 0x00310006 | CKR_DEVICE_MEMORY † |
LUNA_RET_MEMORY_ALLOCATION_FAILED | 0x00310007 | CKR_DEVICE_MEMORY † |
LUNA_RET_TEMPLATE_INCOMPLETE | 0x00D00000 | CKR_TEMPLATE_INCOMPLETE |
LUNA_RET_TEMPLATE_INCONSISTENT | 0x00D10000 | CKR_TEMPLATE_INCONSISTENT* |
LUNA_RET_ATTRIBUTE_TYPE_INVALID | 0x00120000 | CKR_ATTRIBUTE_TYPE_INVALID |
LUNA_RET_ATTRIBUTE_VALUE_INVALID | 0x00130000 | CKR_ATTRIBUTE_VALUE_INVALID |
LUNA_RET_ATTRIBUTE_READ_ONLY | 0x00100000 | CKR_ATTRIBUTE_READ_ONLY |
LUNA_RET_ATTRIBUTE_SENSITIVE | 0x00110000 | CKR_ATTRIBUTE_SENSITIVE |
LUNA_RET_OBJECT_HANDLE_INVALID | 0x00820000 | CKR_OBJECT_HANDLE_INVALID |
LUNA_RET_MAX_OBJECT_COUNT | 0x00820001 | CKR_MAX_OBJECT_COUNT_EXCEEDED |
LUNA_RET_ATTRIBUTE_NOT_FOUND | 0x00120010 | CKR_ATTRIBUTE_TYPE_INVALID |
LUNA_RET_CAN_NOT_CREATE_SECRET_KEY | 0x00D10011 | CKR_TEMPLATE_INCONSISTENT |
LUNA_RET_CAN_NOT_CREATE_PRIVATE_KEY | 0x00D10012 | CKR_TEMPLATE_INCONSISTENT |
LUNA_RET_SECRET_KEY_MUST_BE_SENSITIVE | 0x00130013 | CKR_ATTRIBUTE_VALUE_INVALID |
LUNA_RET_SECRET_KEY_MUST_HAVE_SENSITIVE_ATTRIBUTE | 0x00D00014 | CKR_TEMPLATE_INCOMPLETE |
LUNA_RET_PRIVATE_KEY_MUST_BE_SENSITIVE | 0x00130015 | CKR_ATTRIBUTE_VALUE_INVALID |
LUNA_RET_PRIVATE_KEY_MUST_HAVE_SENSITIVE_ATTRIBUTE | 0x00D00016 | CKR_TEMPLATE_INCOMPLETE |
LUNA_RET_SIGNING_KEY_MUST_BE_LOCAL | 0x00680001 | CKR_KEY_FUNCTION_NOT_PERMITTED |
LUNA_RET_MULTI_FUNCTION_KEYS_NOT_ALLOWED | 0x00D10018 | CKR_TEMPLATE_INCONSISTENT |
LUNA_RET_CAN_NOT_CHANGE_KEY_FUNCTION | 0x00100019 | CKR_ATTRIBUTE_READ_ONLY |
LUNA_RET_KEY_SIZE_RANGE | 0x00620000 | CKR_KEY_SIZE_RANGE |
LUNA_RET_KEY_TYPE_INCONSISTENT | 0x00630000 | CKR_KEY_TYPE_INCONSISTENT |
LUNA_RET_KEY_INVALID_FOR_OPERATION | 0x00630001 | CKR_KEY_TYPE_INCONSISTENT |
LUNA_RET_KEY_PARITY | 0x00630002 | CKR_KEY_TYPE_INCONSISTENT |
LUNA_RET_KEY_UNEXTRACTABLE | 0x006a0000 | CKR_KEY_UNEXTRACTABLE |
LUNA_RET_KEY_EXTRACTABLE | 0x006a0001 | KR_KEY_UNEXTRACTABLE |
LUNA_RET_KEY_INDIGESTIBLE | 0x00670000 | CKR_KEY_INDIGESTIBLE |
LUNA_RET_KEY_NOT_WRAPPABLE | 0x00690000 | CKR_KEY_NOT_WRAPPABLE |
LUNA_RET_KEY_NOT_UNWRAPPABLE | 0x00690001 | CKR_KEY_NOT_WRAPPABLE |
LUNA_RET_ARGUMENTS_BAD | 0x00070000 | CKR_ARGUMENTS_BAD |
LUNA_RET_INVALID_ENTRY_TYPE | 0x00070001 | CKR_INVALID_ENTRY_TYPE |
LUNA_RET_DATA_INVALID | 0x00200000 | CKR_DATA_INVALID |
LUNA_RET_SM_DATA_INVALID | 0x00200002 | CKR_DATA_INVALID |
LUNA_RET_NO_RNG_SEED | 0x00200015 | CKR_DATA_INVALID |
LUNA_RET_FUNCTION_NOT_SUPPORTED | 0x00540000 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_NO_OFFBOARD_STORAGE | 0x00540001 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_CL_COMMAND_NON_BACKUP | 0x00540002 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_BUFFER_TOO_SMALL | 0x01500000 | CKR_BUFFER_TOO_SMALL |
LUNA_RET_DATA_LEN_RANGE | 0x00210000 | CKR_DATA_LEN_RANGE |
LUNA_RET_GENERAL_ERROR | 0x00050000 | CKR_GENERAL_ERROR |
LUNA_RET_DEVICE_ERROR | 0x00300000 | CKR_DEVICE_ERROR |
LUNA_RET_UNKNOWN_COMMAND | 0x00300001 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_TOKEN_LOCKED_OUT | 0x00300002 | CKR_PIN_LOCKED |
LUNA_RET_RNG_ERROR | 0x00300003 | CKR_DEVICE_ERROR |
LUNA_RET_DES_SELF_TEST_FAILURE | 0x00300004 | CKR_DEVICE_ERROR |
LUNA_RET_CAST_SELF_TEST_FAILURE | 0x00300005 | CKR_DEVICE_ERROR |
LUNA_RET_CAST3_SELF_TEST_FAILURE | 0x00300006 | CKR_DEVICE_ERROR |
LUNA_RET_CAST5_SELF_TEST_FAILURE | 0x00300007 | CKR_DEVICE_ERROR |
LUNA_RET_MD2_SELF_TEST_FAILURE | 0x00300008 | CKR_DEVICE_ERROR |
LUNA_RET_MD5_SELF_TEST_FAILURE | 0x00300009 | CKR_DEVICE_ERROR |
LUNA_RET_SHA_SELF_TEST_FAILURE | 0x0030000a | CKR_DEVICE_ERROR |
LUNA_RET_RSA_SELF_TEST_FAILURE | 0x0030000b | CKR_DEVICE_ERROR |
LUNA_RET_RC2_SELF_TEST_FAILURE | 0x0030000c | CKR_DEVICE_ERROR |
LUNA_RET_RC4_SELF_TEST_FAILURE | 0x0030000d | CKR_DEVICE_ERROR |
LUNA_RET_RC5_SELF_TEST_FAILURE | 0x0030000e | CKR_DEVICE_ERROR |
LUNA_RET_SO_LOGIN_FAILURE_THRESHOLD | 0x0030000f | CKR_SO_LOGIN_FAILURE_THRESHOLD |
LUNA_RET_RNG_SELF_TEST_FAILURE | 0x00300010 | CKR_DEVICE_ERROR |
LUNA_RET_SM_UNKNOWN_COMMAND | 0x00300011 | CKR_DEVICE_ERROR |
LUNA_RET_UM_TSN_MISSING | 0x00300012 | CKR_DEVICE_ERROR |
LUNA_RET_SM_TSV_MISSING | 0x00300013 | CKR_DEVICE_ERROR |
LUNA_RET_SM_UNKNOWN_TOSM_STATE | 0x00300014 | CKR_DEVICE_ERROR |
LUNA_RET_DSA_PARAM_GEN_FAILURE | 0x00300015 | CKR_DEVICE_ERROR |
LUNA_RET_DSA_SELF_TEST_FAILURE | 0x00300016 | CKR_DEVICE_ERROR |
LUNA_RET_SEED_SELF_TEST_FAILURE | 0x00300017 | CKR_DEVICE_ERROR |
LUNA_RET_AES_SELF_TEST_FAILURE | 0x00300018 | CKR_DEVICE_ERROR |
LUNA_RET_FUNCTION_NOT_SUPPORTED_BY_HARDWARE | 0x00300019 | CKR_DEVICE_ERROR |
LUNA_RET_HAS160_SELF_TEST_FAILURE | 0x0030001a | CKR_DEVICE_ERROR |
LUNA_RET_KCDSA_PARAM_GEN_FAILURE | 0x0030001b | CKR_DEVICE_ERROR |
LUNA_RET_KCDSA_SELF_TEST_FAILURE | 0x0030001c | CKR_DEVICE_ERROR |
LUNA_RET_HSM_INTERNAL_BUFFER_TOO_SMALL | 0x0030001d | CKR_DEVICE_ERROR |
LUNA_RET_COUNTER_WRAPAROUND | 0x0030001e | CKR_DEVICE_ERROR |
LUNA_RET_TIMEOUT | 0x0030001f | CKR_TIMEOUT |
LUNA_RET_NOT_READY | 0x00300020 | CKR_DEVICE_ERROR |
LUNA_RET_RETRY | 0x00300021 | CKR_DEVICE_ERROR |
LUNA_RET_SHA1_RSA_SELF_TEST_FAILURE | 0x00300022 | CKR_DEVICE_ERROR |
LUNA_RET_SELF_TEST_FAILURE | 0x00300023 | CKR_DEVICE_ERROR |
LUNA_RET_INCOMPATIBLE | 0x00300024 | CKR_DEVICE_ERROR |
LUNA_RET_RIPEMD160_SELF_TEST_FAILURE | 0x00300034 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_CL | 0x00300100 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_MM | 0x00300101 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_UM | 0x00300102 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_SM | 0x00300103 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_RN | 0x00300104 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_CA | 0x00300105 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_PM | 0x00300106 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_OH | 0x00300107 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_CCM | 0x00300108 | CKR_DEVICE_ERROR |
LUNA_RET_TOKEN_LOCKED_OUT_SHA_DIGEST | 0x00300109 | CKR_DEVICE_ERROR |
LUNA_RET_SM_ACCESS_REALLOC_ERROR | 0x00310101 | CKR_DEVICE_ERROR |
LUNA_RET_SM_SESSION_REALLOC_ERROR | 0x00310102 | CKR_DEVICE_ERROR |
LUNA_RET_SM_MEMORY_ALLOCATION_ERROR | 0x00310103 | CKR_DEVICE_ERROR |
LUNA_RET_ENCRYPTED_DATA_INVALID | 0x00400000 | CKR_ENCRYPTED_DATA_INVALID |
LUNA_RET_ENCRYPTED_DATA_LEN_RANGE | 0x00410000 | CKR_ENCRYPTED_DATA_LEN_RANGE |
LUNA_RET_FUNCTION_CANCELED | 0x00500000 | CKR_FUNCTION_CANCELED |
LUNA_RET_KEY_HANDLE_INVALID | 0x00600000 | CKR_KEY_HANDLE_INVALID |
LUNA_RET_MECHANISM_INVALID | 0x00700000 | CKR_MECHANISM_INVALID |
LUNA_RET_MECHANISM_PARAM_INVALID | 0x00710000 | CKR_MECHANISM_PARAM_INVALID |
LUNA_RET_OPERATION_ACTIVE | 0x00900000 | CKR_OPERATION_ACTIVE |
LUNA_RET_OPERATION_NOT_INITIALIZED | 0x00910000 | CKR_OPERATION_NOT_INITIALIZED |
LUNA_RET_UM_PIN_INCORRECT | 0x00a00000 | CKR_PIN_INCORRECT |
LUNA_RET_UM_PIN_INCORRECT_CONTAINER_ZEROIZED | 0x00a00001 | CKR_PIN_INCORRECT |
LUNA_RET_UM_PIN_INCORRECT_CONTAINER_LOCKED | 0x00a00002 | CKR_PIN_INCORRECT |
LUNA_RET_UM_PIN_LEN_RANGE | 0x00a20000 | CKR_PIN_LEN_RANGE |
LUNA_RET_SM_PIN_EXPIRED | 0x00a30000 | CKR_PIN_EXPIRED |
LUNA_RET_SM_EXCLUSIVE_SESSION_EXISTS | 0x00b20000 | CKR_SESSION_EXCLUSIVE_EXISTS |
LUNA_RET_SM_SESSION_HANDLE_INVALID | 0x00b30000 | CKR_SESSION_HANDLE_INVALID |
LUNA_RET_SIGNATURE_INVALID | 0x00c00000 | CKR_SIGNATURE_INVALID |
LUNA_RET_SIGNATURE_LEN_RANGE | 0x00c10000 | CKR_SIGNATURE_LEN_RANGE |
LUNA_RET_UNWRAPPING_KEY_HANDLE_INVALID | 0x00f00000 | CKR_UNWRAPPING_KEY_HANDLE_INVALID |
LUNA_RET_UNWRAPPING_KEY_SIZE_RANGE | 0x00f10000 | CKR_UNWRAPPING_KEY_SIZE_RANGE |
LUNA_RET_UNWRAPPING_KEY_TYPE_INCONSISTENT | 0x00f20000 | CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT |
LUNA_RET_USER_ALREADY_LOGGED_IN | 0x01000000 | CKR_USER_ALREADY_LOGGED_IN |
LUNA_RET_SM_OTHER_USER_LOGGED_IN | 0x01000001 | CKR_USER_ALREADY_LOGGED_IN |
LUNA_RET_USER_NOT_LOGGED_IN | 0x01010000 | CKR_USER_NOT_LOGGED_IN |
LUNA_RET_SM_NOT_LOGGED_IN | 0x01010001 | CKR_USER_NOT_LOGGED_IN |
LUNA_RET_USER_PIN_NOT_INITIALIZED | 0x01020000 | CKR_USER_PIN_NOT_INITIALIZED |
LUNA_RET_USER_TYPE_INVALID | 0x01030000 | CKR_USER_TYPE_INVALID |
LUNA_RET_WRAPPED_KEY_INVALID | 0x01100000 | CKR_WRAPPED_KEY_INVALID |
LUNA_RET_WRAPPED_KEY_LEN_RANGE | 0x01120000 | CKR_WRAPPED_KEY_LEN_RANGE |
LUNA_RET_WRAPPING_KEY_HANDLE_INVALID | 0x01130000 | CKR_WRAPPING_KEY_HANDLE_INVALID |
LUNA_RET_WRAPPING_KEY_SIZE_RANGE | 0x01140000 | CKR_WRAPPING_KEY_SIZE_RANGE |
LUNA_RET_WRAPPING_KEY_TYPE_INCONSISTENT | 0x01150000 | CKR_WRAPPING_KEY_TYPE_INCONSISTENT |
LUNA_RET_CERT_VERSION_NOT_SUPPORTED | 0x00300300 | CKR_DEVICE_ERROR |
LUNA_RET_SIM_AUTHFORM_INVALID | 0x0020011e | CKR_SIM_AUTHFORM_INVALID |
LUNA_RET_CCM_TOO_LARGE | 0x00210001 | CKR_DATA_LEN_RANGE |
LUNA_RET_TEST_VS_BSAFE_FAILED | 0x00300820 | CKR_DEVICE_ERROR |
LUNA_RET_SFNT3120_ERROR | 0x00300821 | CKR_DEVICE_ERROR |
LUNA_RET_SFNT3120_SELFTEST_FAILED | 0x00300822 | CKR_DEVICE_ERROR |
LUNA_RET_SFNT3120_CRC | 0x00300823 | CKR_DEVICE_ERROR |
LUNA_RET_SFNT3120_ALG_NO_SOFTWARE_SUPPORT | 0x00300824 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_ERROR | 0x00300880 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_INIT_FAILED | 0x00300881 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_LNAU_TEST_FAILED | 0x00300882 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_RNG_TEST_FAILED | 0x00300883 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_CMD_FAILED | 0x00300884 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_CMD_PARAMETER_INVALID | 0x00300885 | CKR_DEVICE_ERROR |
LUNA_RET_ISES_TEST_VS_BSAFE_FAILED | 0x00300886 | CKR_DEVICE_ERROR |
LUNA_RET_RM_ELEMENT_VALUE_INVALID | 0x00200a00 | CKR_DATA_INVALID |
LUNA_RET_RM_ELEMENT_ID_INVALID | 0x00200a01 | CKR_DATA_INVALID |
LUNA_RET_RM_NO_MEMORY | 0x00310a02 | CKR_DEVICE_MEMORY |
LUNA_RET_RM_BAD_HSM_PARAMS | 0x00300a03 | CKR_DEVICE_ERROR |
LUNA_RET_RM_POLICY_ELEMENT_DESTRUCTIVE | 0x00200a04 | CKR_DATA_INVALID |
LUNA_RET_RM_POLICY_ELEMENT_NOT_DESTRUCTIVE | 0x00200a05 | CKR_DATA_INVALID |
LUNA_RET_RM_CONFIG_CHANGE_ILLEGAL | 0x00010a06 | CKR_CANCEL |
LUNA_RET_RM_CONFIG_CHANGE_FAILS_DEPENDENCIES | 0x00010a07 | CKR_CANCEL |
LUNA_RET_LICENSE_ID_UNKNOWN | 0x00200a08 | CKR_DATA_INVALID |
LUNA_RET_LICENSE_CAPACITY_EXCEEDED | 0x00010a09 | CKR_LICENSE_CAPACITY_EXCEEDED |
LUNA_RET_RM_POLICY_WRITE_RESTRICTED | 0x00010a0a | CKR_CANCEL |
LUNA_RET_OPERATION_RESTRICTED | 0x00010a0b | CKR_OPERATION_NOT_ALLOWED |
LUNA_RET_CANNOT_PERFORM_OPERATION_TWICE | 0x00010a0c | CKR_CANCEL |
LUNA_RET_BAD_PPID | 0x00200a0d | CKR_DATA_INVALID |
LUNA_RET_BAD_FW_VERSION | 0x00200a0e | CKR_DATA_INVALID |
LUNA_RET_OPERATION_SHOULD_BE_DESTRUCTIVE | 0x00200a0f | CKR_DATA_INVALID |
LUNA_RET_RM_CONFIG_ILLEGAL | 0x00200a10 | CKR_DATA_INVALID |
LUNA_RET_BAD_SN | 0x00200a11 | CKR_DATA_INVALID |
LUNA_RET_CHALLENGE_TYPE_INVALID | 0x00200b00 | CKR_DATA_INVALID |
LUNA_RET_CHALLENGE_REQUIRES_PED | 0x00010b01 | CKR_CANCEL |
LUNA_RET_CHALLENGE_NOT_REQUIRED | 0x00010b02 | CKR_CANCEL |
LUNA_RET_CHALLENGE_RESPONSE_INCORRECT | 0x00a00b03 | CKR_PIN_INCORRECT |
LUNA_RET_OH_OBJECT_VERSION_INVALID | 0x00300c00 | CKR_DEVICE_ERROR |
LUNA_RET_OH_OBJECT_TYPE_INVALID | 0x00300c01 | CKR_DEVICE_ERROR |
LUNA_RET_OH_OBJECT_ALREADY_EXISTS | 0x00010c02 | CKR_CANCEL |
LUNA_RET_OH_OBJECT_OWNER_DOES_NOT_EXIST | 0x00200c03 | CKR_DATA_INVALID |
LUNA_RET_STORAGE_TYPE_INCONSISTENT | 0x00200c04 | CKR_DATA_INVALID |
LUNA_RET_CONTAINER_CAN_NOT_HAVE_MEMBERS | 0x00200c05 | CKR_DATA_INVALID |
LUNA_RET_SAVED_STATE_INVALID | 0x01600000 | CKR_SAVED_STATE_INVALID |
LUNA_RET_STATE_UNSAVEABLE | 0x01800000 | CKR_STATE_UNSAVEABLE |
LUNA_RET_ERROR | 0x80000000 | CKR_GENERAL_ERROR |
LUNA_RET_CONTAINER_HANDLE_INVALID | 0x80000001 | CKR_CONTAINER_HANDLE_INVALID |
LUNA_RET_INVALID_PADDING_TYPE | 0x80000002 | CKR_DATA_INVALID |
LUNA_RET_NOT_FOUND | 0x80000007 | CKR_FUNCTION_FAILED |
LUNA_RET_TOO_MANY_CONTAINERS | 0x80000008 | CKR_TOO_MANY_CONTAINERS |
LUNA_RET_CONTAINER_LOCKED | 0x80000009 | CKR_PIN_LOCKED |
LUNA_RET_CONTAINER_IS_DISABLED | 0x8000000a | CKR_PARTITION_DISABLED |
LUNA_RET_SECURITY_PARAMETER_MISSING | 0x8000000b | CKR_SECURITY_PARAMETER_MISSING |
LUNA_RET_DEVICE_TIMEOUT | 0x8000000c | CKR_DEVICE_TIMEOUT |
LUNA_RET_OBJECT_DELETED | 0x8000000d | HSM Internal ONLY |
LUNA_RET_INVALID_FUF_TARGET | 0x8000000e | CKR_INVALID_FUF_TARGET |
LUNA_RET_INVALID_FUF_HEADER | 0x8000000f | CKR_INVALID_FUF_HEADER |
LUNA_RET_INVALID_FUF_VERSION | 0x80000010 | CKR_INVALID_FUF_VERSION |
LUNA_RET_KCV_PARAMETER_ALREADY_EXISTS | 0x80000100 | CKR_CLONING_PARAMETER_ALREADY_EXISTS |
LUNA_RET_KCV_PARAMETER_COULD_NOT_BE_ADDED | 0x80000101 | CKR_DEVICE_MEMORY |
LUNA_RET_INVALID_CERTIFICATE_DATA | 0x80000102 | CKR_CERTIFICATE_DATA_INVALID |
LUNA_RET_INVALID_CERTIFICATE_TYPE | 0x80000103 | CKR_CERTIFICATE_DATA_INVALID |
LUNA_RET_INVALID_CERTIFICATE_VERSION | 0x80000104 | CKR_CERTIFICATE_DATA_INVALID |
LUNA_RET_INVALID_MODULUS_SIZE | 0x80000105 | CKR_ATTRIBUTE_VALUE_INVALID |
LUNA_RET_WRAPPING_ERROR | 0x80000107 | CKR_WRAPPING_ERROR |
LUNA_RET_UNWRAPPING_ERROR | 0x80000108 | CKR_UNWRAPPING_ERROR |
LUNA_RET_INVALID_PRIVATE_KEY_TYPE | 0x80000109 | CKR_DATA_INVALID |
LUNA_RET_TSN_MISMATCH | 0x8000010a | CKR_DATA_INVALID |
LUNA_RET_KCV_PARAMETER_MISSING | 0x8000010b | CKR_CLONING_PARAMETER_MISSING |
LUNA_RET_TWC_PARAMETER_MISSING | 0x8000010c | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_TUK_PARAMETER_MISSING | 0x8000010d | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_CPK_PARAMETER_MISSING | 0x8000010e | CKR_KEY_NEEDED |
LUNA_RET_MASKING_NOT_SUPPORTED | 0x8000010f | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_INVALID_ACCESS_LEVEL | 0x80000110 | CKR_ARGUMENTS_BAD |
LUNA_RET_MAC_MISSING | 0x80000111 | CKR_MAC_MISSING |
LUNA_RET_DAC_POLICY_PID_MISMATCH | 0x80000112 | CKR_DAC_POLICY_PID_MISMATCH |
LUNA_RET_DAC_MISSING | 0x80000113 | CKR_DAC_MISSING |
LUNA_RET_BAD_DAC | 0x80000114 | CKR_BAD_DAC |
LUNA_RET_SSK_MISSING | 0x80000115 | CKR_SSK_MISSING |
LUNA_RET_BAD_MAC | 0x80000116 | CKR_BAD_MAC |
LUNA_RET_DAK_MISSING | 0x80000117 | CKR_DAK_MISSING |
LUNA_RET_BAD_DAK | 0x80000118 | CKR_BAD_DAK |
LUNA_RET_HOK_MISSING | 0x80000119 | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_CITS_DAK_MISSING | 0x8000011a | CKR_CITS_DAK_MISSING |
LUNA_RET_SIM_AUTHORIZATION_FAILED | 0x8000011b | CKR_SIM_AUTHORIZATION_FAILED |
LUNA_RET_SIM_VERSION_UNSUPPORTED | 0x8000011c | CKR_SIM_VERSION_UNSUPPORTED |
LUNA_RET_SIM_CORRUPT_DATA | 0x8000011d | CKR_SIM_CORRUPT_DATA |
LUNA_RET_ECC_MIC_MISSING | 0x8000011e | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_ECC_HOK_MISSING | 0x8000011f | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_ECC_HOC_MISSING | 0x80000120 | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_ECC_DAK_MISSING | 0x80000121 | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_ECC_DAC_MISSING | 0x80000122 | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_ROOT_CERT_MISSING | 0x80000123 | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_HOC_MISSING | 0x80000124 | CKR_CERTIFICATE_DATA_MISSING |
LUNA_RET_INVALID_CERTIFICATE_FUNCTION | 0x80000125 | CKR_CERTIFICATE_DATA_INVALID |
LUNA_RET_N_TOO_LARGE | 0x80000200 | CKR_ARGUMENTS_BAD |
LUNA_RET_N_TOO_SMALL | 0x80000201 | CKR_ARGUMENTS_BAD |
LUNA_RET_M_TOO_LARGE | 0x80000202 | CKR_ARGUMENTS_BAD |
LUNA_RET_M_TOO_SMALL | 0x80000203 | CKR_ARGUMENTS_BAD |
LUNA_RET_WEIGHT_TOO_LARGE | 0x80000204 | CKR_ARGUMENTS_BAD |
LUNA_RET_WEIGHT_TOO_SMALL | 0x80000205 | CKR_ARGUMENTS_BAD |
LUNA_RET_TOTAL_WEIGHT_INVALID | 0x80000206 | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_SPLITS | 0x80000207 | CKR_ARGUMENTS_BAD |
LUNA_RET_SPLIT_DATA_INVALID | 0x80000208 | CKR_ARGUMENTS_BAD |
LUNA_RET_SPLIT_ID_INVALID | 0x80000209 | CKR_ARGUMENTS_BAD |
LUNA_RET_M_OF_N_PARAMETER_NOT_AVAILABLE | 0x8000020a | CKR_OPERATION_NOT_INITIALIZED |
LUNA_RET_M_OF_N_ACTIVATION_REQUIRED | 0x8000020b | CKR_OPERATION_NOT_INITIALIZED |
LUNA_RET_TOO_MANY_WEIGHTS | 0x8000020e | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_WEIGHT_VALUE | 0x8000020f | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_VALUE_FOR_M | 0x80000210 | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_VALUE_FOR_N | 0x80000211 | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_NUMBER_OF_VECTORS | 0x80000212 | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_VECTOR | 0x80000213 | CKR_ARGUMENTS_BAD |
LUNA_RET_VECTOR_TOO_LARGE | 0x80000214 | CKR_ARGUMENTS_BAD |
LUNA_RET_VECTOR_TOO_SMALL | 0x80000215 | CKR_ARGUMENTS_BAD |
LUNA_RET_TOO_MANY_VECTORS_PROVIDED | 0x80000216 | CKR_ARGUMENTS_BAD |
LUNA_RET_INVALID_VECTOR_SIZE | 0x80000217 | CKR_ARGUMENTS_BAD |
LUNA_RET_M_OF_N_PARAMETER_EXIST | 0x80000218 | CKR_FUNCTION_FAILED |
LUNA_RET_VECTOR_VERSION_INVALID | 0x80000219 | CKR_DATA_INVALID |
LUNA_RET_VECTOR_OF_DIFFERENT_SET | 0x8000021a | CKR_ARGUMENTS_BAD |
LUNA_RET_VECTOR_DUPLICATE | 0x8000021b | CKR_ARGUMENTS_BAD |
LUNA_RET_VECTOR_TYPE_INVALID | 0x8000021c | CKR_ARGUMENTS_BAD |
LUNA_RET_MISSING_COMMAND_PARAMETER | 0x8000021d | CKR_ARGUMENTS_BAD |
LUNA_RET_M_OF_N_CLONING_IS_NOT_ALLOWED | 0x8000021e | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_M_OF_N_IS_NOT_REQUIRED | 0x8000021f | CKR_OPERATION_NOT_INITIALIZED |
LUNA_RET_M_OF_N_IS_NOT_INITIALZED | 0x80000220 | CKR_OPERATION_NOT_INITIALIZED |
LUNA_RET_M_OF_N_SECRET_INVALID | 0x80000221 | CKR_GENERAL_ERROR |
LUNA_RET_CCM_NOT_PRESENT | 0x80000300 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_CCM_NOT_SUPPORTED | 0x80000301 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_CCM_UNREMOVABLE | 0x80000302 | CKR_DATA_INVALID |
LUNA_RET_CCM_CERT_INVALID | 0x80000303 | CKR_DATA_INVALID |
LUNA_RET_CCM_SIGN_INVALID | 0x80000304 | CKR_DATA_INVALID |
LUNA_RET_CCM_UPDATE_DENIED | 0x80000305 | CKR_DATA_INVALID |
LUNA_RET_CCM_FWUPDATE_DENIED | 0x80000306 | CKR_DATA_INVALID |
LUNA_RET_SM_ACCESS_ID_INVALID | 0x80000400 | CKR_DATA_INVALID |
LUNA_RET_SM_ACCESS_ALREADY_EXISTS | 0x80000401 | CKR_DATA_INVALID |
LUNA_RET_SM_MULTIPLE_ACCESS_DISABLED | 0x80000402 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_SM_UNKNOWN_ACCESS_TYPE | 0x80000403 | CKR_ARGUMENTS_BAD |
LUNA_RET_SM_BAD_ACCESS_HANDLE | 0x80000404 | CKR_DATA_INVALID |
LUNA_RET_SM_BAD_CONTEXT_NUMBER | 0x80000405 | CKR_DATA_INVALID |
LUNA_RET_SM_UNKNOWN_SESSION_TYPE | 0x80000406 | CKR_DATA_INVALID |
LUNA_RET_SM_CONTEXT_ALREADY_ALLOCATED | 0x80000407 | CKR_DATA_INVALID |
LUNA_RET_SM_CONTEXT_NOT_ALLOCATED | 0x80000408 | CKR_DEVICE_MEMORY |
LUNA_RET_SM_CONTEXT_BUFFER_OVERFLOW | 0x80000409 | CKR_DEVICE_MEMORY |
LUNA_RET_SM_TOSM_DOES_NOT_VALIDATE | 0x8000040A | CKR_USER_NOT_LOGGED_IN |
LUNA_RET_SM_ACCESS_DOES_NOT_VALIDATE | 0x8000040B | CKR_USER_NOT_AUTHORIZED |
LUNA_RET_MTK_ZEROIZED | 0x80000531 | CKR_MTK_ZEROIZED |
LUNA_RET_MTK_STATE_INVALID | 0x80000532 | CKR_MTK_STATE_INVALID |
LUNA_RET_MTK_SPLIT_INVALID | 0x80000533 | CKR_MTK_SPLIT_INVALID |
LUNA_RET_INVALID_IP_PACKET | 0x80000600 | CKR_DEVICE_ERROR |
LUNA_RET_INVALID_BOARD_TYPE | 0x80000700 | CKR_DEVICE_ERROR |
LUNA_RET_ECC_NOT_SUPPORTED | 0x80000601 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_ECC_BUFFER_OVERFLOW | 0x80000602 | CKR_DEVICE_ERROR |
LUNA_RET_ECC_POINT_INVALID | 0x80000603 | CKR_ECC_POINT_INVALID** |
LUNA_RET_ECC_SELF_TEST_FAILURE | 0x80000604 | CKR_DEVICE_ERROR |
LUNA_RET_ECC_UNKNOWN_CURVE | 0x80000605 | CKR_ECC_UNKNOWN_CURVE |
LUNA_RET_HA_NOT_SUPPORTED | 0x80000900 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_HA_USER_NOT_INITIALIZED | 0x80000901 | CKR_OPERATION_NOT_INITIALIZED |
LUNA_RET_HSM_STORAGE_FULL | 0x80000902 | CKR_HSM_STORAGE_FULL |
LUNA_RET_CONTAINER_OBJECT_STORAGE_FULL | 0x80000903 | CKR_CONTAINER_OBJECT_STORAGE_FULL |
LUNA_RET_KEY_NOT_ACTIVE | 0x80000904 | CKR_KEY_NOT_ACTIVE |
LUNA_RET_CB_NOT_SUPPORTED | 0x80000a01 | CKR_FUNCTION_NOT_SUPPORTED |
LUNA_RET_CB_PARAM_INVALID | 0x80000a02 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_NO_MEMORY | 0x80000a03 | CKR_DEVICE_MEMORY |
LUNA_RET_CB_TIMEOUT | 0x80000a04 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_RETRY | 0x80000a05 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_ABORTED | 0x80000a06 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_SYS_ERROR | 0x80000a07 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_HANDLE_INVALID | 0x80000a10 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_ID_INVALID | 0x80000a11 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_CLOSED | 0x80000a12 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_CANCELED | 0x80000a13 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_IO_ERROR | 0x80000a14 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_SEND_TIMEOUT | 0x80000a15 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_RECV_TIMEOUT | 0x80000a16 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_STATE_INVALID | 0x80000a17 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_OUTPUT_BUFFER_TOO_SMALL | 0x80000a18 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HIOS_INPUT_BUFFER_TOO_SMALL | 0x80000a19 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_HANDLE_INVALID | 0x80000a20 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_ID_INVALID | 0x80000a21 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_REMOTE_ABORT | 0x80000a22 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_REMOTE_CLOSED | 0x80000a23 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_REMOTE_ABANDONED | 0x80000a24 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_MUST_READ | 0x80000a25 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_MUST_WRITE | 0x80000a26 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_INVALID_CALL_FOR_THE_STATE | 0x80000a27 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_SYNC_ERROR | 0x80000a28 | CKR_CALLBACK_ERROR |
LUNA_RET_CB_PROT_DATA_INVALID | 0x80000a29 | CKR_CALLBACK_ERROR |
LUNA_RET_LOG_FILE_NOT_OPEN | 0x80000d00 | CKR_LOG_FILE_NOT_OPEN |
LUNA_RET_LOG_FILE_WRITE_ERROR | 0x80000d01 | CKR_LOG_FILE_WRITE_ERROR |
LUNA_RET_LOG_BAD_FILE_NAME | 0x80000d02 | CKR_LOG_BAD_FILE_NAME |
LUNA_RET_LOG_FULL | 0x80000d03 | CKR_LOG_FULL |
LUNA_RET_LOG_NO_KCV | 0x80000d04 | CKR_LOG_NO_KCV |
LUNA_RET_LOG_BAD_RECORD_HMAC | 0x80000d05 | CKR_LOG_BAD_RECORD_HMAC |
LUNA_RET_LOG_BAD_TIME | 0x80000d06 | CKR_LOG_BAD_TIME |
LUNA_RET_LOG_AUDIT_NOT_INITIALIZED | 0x80000d07 | CKR_LOG_AUDIT_NOT_INITIALIZED |
LUNA_RET_LOG_RESYNC_NEEDED | 0x80000d08 | CKR_LOG_RESYNC_NEEDED |
LUNA_RET_AUDIT_LOGIN_TIMEOUT_IN_PROGRESS | 0x80000d09 | CKR_AUDIT_LOGIN_TIMEOUT_IN_PROGRESS |
LUNA_RET_AUDIT_LOGIN_FAILURE_THRESHOLD | 0x80000d0a | CKR_AUDIT_LOGIN_FAILURE_THRESHOLD |
LUNA_RET_XTC_ERROR | 0x80001600 | CKR_XTC_ERROR |
LUNA_RET_CONTEXT_INVALID | 0x80001601 | CKR_CONTEXT_INVALID |
LUNA_RET_SESSION_COUNT | 0x80001603 | CKR_MAX_SESSION_COUNT |
LUNA_RET_BUSY | 0x80001604 | CKR_BUSY |
* This error (CKR_TEMPLATE_INCONSISTENT) might be encountered when using CKDemo in a new client with firmware older than version 6.22.0. Try CKDemo option 98, sub-option 16. If it is set to "enhanced roles", try selecting it to set it to "legacy Luna roles". The setting is a toggle, and flips every time you select it.
** This error, or "unable to read public key", might be encountered when using BSAFE to encrypt data with ECC public key using curves from the Brainpool suite. As indicated on the BSAFE website (May 2012) they do not appear to support Brainpool curves. Therefore, your own applications should not attempt that combination, and you should avoid attempting to specify Brainpool curves with BSAFE ECC when using the Luna CKDemo utility.
† These errors (0x00310000 through 0x00310007) are all considered as the same generic CKR_DEVICE_MEMORY error by a host application. They are visible using Luna HSM Firmware 7.8.1 or newer. Your application is responsible for closing crypto sessions and releasing resources when they are no longer being used. Failure to do so allows accumulating orphan sessions to eventually consume all available HSM memory. The HSM has no way to know that any given session is no longer needed, unless your application explicitly closes the session. If a solution/application mixes Java and C/C++ operations, those might not agree on when sessions are to close.
Workaround: If you are seeing device memory errors in the logs, consider:
1. Stopping your application (so that it does not continue attempting cryptographic operations against the HSM)
2.Restarting the HSM to clear any orphan sessions or processes (use hsm restart to restart the HSM
3. Restarting your application.
NOTE This is a temporary measure to clear the effects of application behavior that should be corrected, or the problem can recur. Contact your application vendor to report the memory issue.