17 #ifndef CIFER_ERRORS_H
18 #define CIFER_ERRORS_H
28 typedef enum cfe_error {
32 CFE_ERR_MALFORMED_PUB_KEY,
33 CFE_ERR_MALFORMED_SEC_KEY,
34 CFE_ERR_MALFORMED_FE_KEY,
35 CFE_ERR_MALFORMED_CIPHER,
36 CFE_ERR_MALFORMED_INPUT,
37 CFE_ERR_BOUND_CHECK_FAILED,
39 CFE_ERR_DLOG_NOT_FOUND,
40 CFE_ERR_DLOG_CALC_FAILED,
41 CFE_ERR_PRIME_GEN_FAILED,
42 CFE_ERR_PARAM_GEN_FAILED,
43 CFE_ERR_PUB_KEY_GEN_FAILED,
44 CFE_ERR_SEC_KEY_GEN_FAILED,
46 CFE_ERR_PRECONDITION_FAILED,
48 CFE_ERR_INSUFFICIENT_KEYS,
49 CFE_ERR_CORRUPTED_BOOL_EXPRESSION,
50 CFE_ERR_NO_SOLUTION_EXISTS,