CryptoDit/error.h
2026-02-27 14:30:01 +01:00

23 lines
626 B
C

#ifndef H_ERROR
#define H_ERROR
/* Define all Common errors */
#define COMMON_ERR_MALLOC 0x100
/* Define all FIPS errors */
#define FIPS_ERR_LOAD_KEY 0x200
#define FIPS_ERR_NEW_BIO 0x201
#define FIPS_ERR_READ_BIO 0x202
#define FIPS_ERR_LOAD_RSA_KEY 0x203
#define FIPS_ERR_LOAD_RSA_PRIV_KEY 0x204
#define FIPS_ERR_LOAD_X509 0x205
#define FIPS_ERR_LOAD_ECC_PUBKEY 0x210
#define FIPS_ERR_LOAD_ECC_PRIVKEY 0x211
#define FIPS_ERR_GET_ECC_GROUP 0x212
#define FIPS_ERR_GET_ECC_DOMAPARAM 0x213
#define FIPS_ERR_GET_ECC_GENERATOR 0x214
#endif