SX_OK Macro

C

#define SX_OK 0

Description

The function or operation succeeded

SX_ERR_HW_PROCESSING Macro

C

#define SX_ERR_HW_PROCESSING -1

Description

Waiting on the hardware to process this operation

SX_ERR_RETRY Macro

C

#define SX_ERR_RETRY -2

Description

No hardware available for a new operation. Retry later.

SX_ERR_INCOMPATIBLE_HW Macro

C

#define SX_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.

SX_ERR_INVALID_TAG Macro

C

#define SX_ERR_INVALID_TAG -16

Description

Invalid authentication tag in authenticated decryption

SX_ERR_DMA_FAILED Macro

C

#define SX_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.

SX_ERR_UNITIALIZED_OBJ Macro

C

#define SX_ERR_UNITIALIZED_OBJ -33

Description

Fatal error, trying to call a function with an uninitialized object For example calling sx_aead_decrypt() with an sxaead object whichas not been created yet with sx_aead_create_*() function.

SX_ERR_INVALID_KEYREF Macro

C

#define SX_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 sx_blkcipher_create_aesecb() with a key reference which has not been initialized yet with sx_keyref_load_material() or sx_keyref_load_by_id() function, sx_keyref_load_material() was called with key NULL or size 0, or sx_keyref_load_by_id() was called with an invalid index ID.

SX_ERR_ALLOCATION_TOO_SMALL Macro

C

#define SX_ERR_ALLOCATION_TOO_SMALL -35

Description

Fatal error, trying to create instance with not enough memory

SX_ERR_TOO_BIG Macro

C

#define SX_ERR_TOO_BIG -64

Description

Input or output buffer size too large

SX_ERR_TOO_SMALL Macro

C

#define SX_ERR_TOO_SMALL -65

Description

Input or output buffer size too small

SX_ERR_INVALID_KEY_SZ Macro

C

#define SX_ERR_INVALID_KEY_SZ -66

Description

The given key size is not supported by the algorithm or the hardware

SX_ERR_INVALID_TAG_SZ Macro

C

#define SX_ERR_INVALID_TAG_SIZE -67

Description

Input tag size is invalid

SX_ERR_INVALID_NONCE_SIZE Macro

C

#define SX_ERR_INVALID_NONCE_SIZE -68

Description

Input nonce size is invalid

SX_ERR_FEED_COUNT_EXCEEDED Macro

C

#define SX_ERR_FEED_COUNT_EXCEEDED -69

Description

Too many feeds were inputed

SX_ERR_WRONG_SIZE_GRANULARITY Macro

C

#define SX_ERR_WRONG_SIZE_GRANULARITY -70

Description

Input data size granularity is incorrect

SX_ERR_HW_KEY_NOT_SUPPORTED Macro

C

#define SX_ERR_HW_KEY_NOT_SUPPORTED -71

Description

Attempt to use HW keys with a mode that does not support HW keys

SX_ERR_HW_CONTEXT_SAVING_NOT_SUPPORTED Macro

C

#define SX_ERR_CONTEXT_SAVING_NOT_SUPPORTED -72

Description

Attempt to use a mode or engine that does not support context saving

SX_ERR_FEED_AFTER_DATA Macro

C

#define SX_ERR_FEED_AFTER_DATA -73

Description

Attempt to feed AAD after input data was fed

SX_ERR_FEED_RESET_NEEDED Macro

C

#define SX_ERR_RESET_NEEDED -82

Description

Hardware cannot work anymore. To recover, reset the hardware.