#define STATUSCODES_API_FILE
@file @copyright Copyright (c) 2019 Silex Insight. All Rights reserved.
#define SX_ERR_HW_PROCESSING -1
#define SX_ERR_INCOMPATIBLE_HW -3
This error occurs if the dedicated hardware to execute the operation is not present, or hardware is present and operation not supported by it.
#define SX_ERR_DMA_FAILED -32
Fatal error that should never happen. Can be caused by invalid or wrong addresses, RAM corruption, a hardware or software bug or system corruption.
#define SX_ERR_UNITIALIZED_OBJ -33
For example calling sx_aead_decrypt() with an sxaead object which has not been created yet with sx_aead_create_() function.
#define SX_ERR_INVALID_KEYREF -34
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.
#define SX_ERR_TOO_BIG -64
#define SX_ERR_INVALID_KEY_SZ -66
#define SX_ERR_INVALID_NONCE_SIZE -68
#define SX_ERR_WRONG_SIZE_GRANULARITY -70
#define SX_ERR_CONTEXT_SAVING_NOT_SUPPORTED -72
To recover, reset the hardware.