CRM_OK Macro
C
#define CRM_OK 0
Description
The function or operation succeeded
CRM_ERR_HW_PROCESSING Macro
C
#define CRM_ERR_HW_PROCESSING -1
Description
Waiting on the hardware to process this operation
CRM_ERR_RETRY Macro
C
#define CRM_ERR_RETRY -2
Description
No hardware available for a new operation. Retry later.
CRM_ERR_INCOMPATIBLE_HW Macro
C
#define CRM_ERR_INCOMPATIBLE_HW -3
Description
No compatible hardware for this operation. This error occurs if the dedicated hardware to execute the operation is not present, or hardware is present and operation not supported by it.
CRM_ERR_INVALID_TAG Macro
C
#define CRM_ERR_INVALID_TAG -16
Description
Invalid authentication tag in authenticated decryption
CRM_ERR_DMA_FAILED Macro
C
#define CRM_ERR_DMA_FAILED -32
Description
Invalid authentication tag in authenticated decryption Hardware DMA error Fatal error that should never happen. Can be caused by invalid or wrong addresses, RAM corruption, a hardware or software bug or system corruption.
CRM_ERR_UNITIALIZED_OBJ Macro
C
#define CRM_ERR_UNITIALIZED_OBJ -33
Description
Fatal error, trying to call a function with an uninitialized object For example calling crm_aead_decrypt() with an crmaead object whichas not been created yet with crm_aead_create_*() function.
CRM_ERR_INVALID_KEYREF Macro
C
#define CRM_ERR_INVALID_KEYREF -34
Description
Fatal error, trying to call an AEAD or block cipher create function with an uninitialized or invalid key reference. Examples: calling crm_blkcipher_create_aesecb() with a key reference which has not been initialized yet with crm_keyref_load_material() or crm_keyref_load_by_id() function, crm_keyref_load_material() was called with key NULL or size 0, or crm_keyref_load_by_id() was called with an invalid index ID.
CRM_ERR_ALLOCATION_TOO_SMALL Macro
C
#define CRM_ERR_ALLOCATION_TOO_SMALL -35
Description
Fatal error, trying to create instance with not enough memory
CRM_ERR_TOO_BIG Macro
C
#define CRM_ERR_TOO_BIG -64
Description
Input or output buffer size too large
CRM_ERR_TOO_SMALL Macro
C
#define CRM_ERR_TOO_SMALL -65
Description
Input or output buffer size too small
CRM_ERR_INVALID_KEY_SZ Macro
C
#define CRM_ERR_INVALID_KEY_SZ -66
Description
The given key size is not supported by the algorithm or the hardware
CRM_ERR_INVALID_TAG_SZ Macro
C
#define CRM_ERR_INVALID_TAG_SIZE -67
Description
Input tag size is invalid
CRM_ERR_INVALID_NONCE_SIZE Macro
C
#define CRM_ERR_INVALID_NONCE_SIZE -68
Description
Input nonce size is invalid
CRM_ERR_FEED_COUNT_EXCEEDED Macro
C
#define CRM_ERR_FEED_COUNT_EXCEEDED -69
Description
Too many feeds were inputed
CRM_ERR_WRONG_SIZE_GRANULARITY Macro
C
#define CRM_ERR_WRONG_SIZE_GRANULARITY -70
Description
Input data size granularity is incorrect
CRM_ERR_HW_KEY_NOT_SUPPORTED Macro
C
#define CRM_ERR_HW_KEY_NOT_SUPPORTED -71
Description
Attempt to use HW keys with a mode that does not support HW keys
CRM_ERR_HW_CONTEXT_SAVING_NOT_SUPPORTED Macro
C
#define CRM_ERR_CONTEXT_SAVING_NOT_SUPPORTED -72
Description
Attempt to use a mode or engine that does not support context saving
CRM_ERR_FEED_AFTER_DATA Macro
C
#define CRM_ERR_FEED_AFTER_DATA -73
Description
Attempt to feed AAD after input data was fed
CRM_ERR_FEED_RESET_NEEDED Macro
C
#define CRM_ERR_RESET_NEEDED -82
Description
Hardware cannot work anymore. To recover, reset the hardware.