2.1.1 crypto_Sym_Status_E
Description
This enum is used to represent the return type of Symmetric algorithm APIs.
Enumeration Data Types | Numerical Value | Description |
---|---|---|
CRYPTO_SYM_ERROR_CIPNOTSUPPTD | -127 | Error when cipher algorithm not supported by crypto software component. |
CRYPTO_SYM_ERROR_CTX | -126 | Error when context pointer is NULL. |
CRYPTO_SYM_ERROR_KEY | -125 | Error when key length is above or below its range or key pointer is NULL. |
CRYPTO_SYM_ERROR_HDLR | -124 | Error when handler type is invalid. |
CRYPTO_SYM_ERROR_OPMODE | -123 | Error when operation mode (ECB, CBC, or others) is invalid. |
CRYPTO_SYM_ERROR_IV | -122 | Error when initialization vector pointer is NULL or its length is 0. |
CRYPTO_SYM_ERROR_INPUTDATA | -121 | Error when input data length is zero or its pointer is NULL. |
CRYPTO_SYM_ERROR_OUTPUTDATA | -120 | Error when output data pointer is NULL. |
CRYPTO_SYM_ERROR_CIPOPER | -119 | Error when cipher operation (encryption or decryption) is invalid. |
CRYPTO_SYM_ERROR_SID | -118 | Error when session ID is zero or its value is more than max session configure in configurations. |
CRYPTO_SYM_ERROR_ARG | -117 | Error when any other argument is invalid. For example, tweak value pointer is NULL for AES-XTS. |
CRYPTO_SYM_ERROR_CIPFAIL | -116 | Error when encryption or decryption operation failed due to any reason. |
CRYPTO_SYM_CIPHER_SUCCESS | 0 | Cipher operation is completed successfully. |