1 #ifndef _ERRORS_H 2 #define _ERRORS_H 3 4 /** Standard errors common to all ciphers **/ 5 #define ERR_NULL 1 6 #define ERR_MEMORY 2 7 #define ERR_NOT_ENOUGH_DATA 3 8 #define ERR_ENCRYPT 4 9 #define ERR_DECRYPT 5 10 #define ERR_KEY_SIZE 6 11 #define ERR_NONCE_SIZE 7 12 #define ERR_NR_ROUNDS 8 13 #define ERR_DIGEST_SIZE 9 14 #define ERR_MAX_DATA 10 15 #define ERR_MAX_OFFSET 11 16 #define ERR_BLOCK_SIZE 12 17 #define ERR_TAG_SIZE 13 18 #define ERR_VALUE 14 19 #define ERR_EC_POINT 15 20 #define ERR_EC_CURVE 16 21 #define ERR_MODULUS 17 22 #define ERR_UNKNOWN 32 23 24 #endif 25