#ifndef ECA_MODULE_ERRORS
#define ECA_MODULE_ERRORS

#define ECA_MODULE_ERR_SUCCESS           0x00000000
#define ECA_MODULE_ERR_INVALID_PARAMS    0x00000001
#define ECA_MODULE_ERR_INVALID_LENGTH    0x00000002
#define ECA_MODULE_ERR_ACCESS_DENIED     0x00000003
#define ECA_MODULE_ERR_CANCELED_BY_USER  0x00000004
#define ECA_MODULE_ERR_TIMEOUT           0x00000005
#define ECA_MODULE_ERR_OUT_OF_RESOURCE   0x00000006
#define ECA_MODULE_ERR_VERIFY_NOT_DSI    0x00000007
#define ECA_MODULE_ERR_VERIFY_INV_SIGN   0x00000008
#define ECA_MODULE_ERR_MODULE_NOT_FOUND  0x00000009
#define ECA_MODULE_ERR_OUT_OF_SEQUENCE   0x0000000A
#define ECA_MODULE_ERR_VALIDATION        0x0000000B
#define ECA_MODULE_ERR_MEMORY            0x0000000C
#define ECA_MODULE_ERR_VERSION           0x0000000D
#define ECA_MODULE_ERR_INVALID_KEY       0x0000000E
#define ECA_MODULE_NOT_SUPPORTED         0x0000000F
#define ECA_MODULE_ERR_NO_FUNCTION       0x00000010
#define ECA_MODULE_ERR_CO_EXISTENCE      0x00000011

#define ECA_MODULE_ERR_NO_SAM            0x10000001
#define ECA_MODULE_ERR_OPENING_SAM       0x10000002
#define ECA_MODULE_ERR_SAM_CARD_TYPE     0x10000003
#define ECA_MODULE_ERR_SAM_GET_RND       0x10000004
#define ECA_MODULE_ERR_SAM_PACE_ERR      0x10000005
#define ECA_MODULE_ERR_SAM_GET_CHALLENGE 0x10000006
#define ECA_MODULE_ERR_SAM_RESET_PIN     0x10000008
#define ECA_MODULE_ERR_SAM_PACE_ERR_STEP_2  0x10000009
#define ECA_MODULE_ERR_SAM_SELECT_AID     0x1000000A
#define ECA_MODULE_ERR_SAM_GET_CHALLENGE_STEP2 0x1000000B
#define ECA_MODULE_ERR_SAM_SET_ESIGN_PIN  0x1000000C
#define ECA_MODULE_ERR_SAM_PACE_ERR_STEP_3     0x1000000D
#define ECA_MODULE_ERR_SAM_SELECT_AID_STEP_3     0x1000000E
#define ECA_MODULE_ERR_SAM_VERIFY_PIN     0x1000000F
#define ECA_MODULE_ERR_SAM_NOT_READY      0x10000010
#define ECA_MODULE_ERR_SAM_SELECT_CURVE   0x10000011
#define ECA_MODULE_ERR_SAM_SIGNING        0x10000012
#define ECA_MODULE_ERR_SAM_VERIFING       0x10000013
#define ECA_MODULE_ERR_SELECT_EF_KEYD     0x10000014
#define ECA_MODULE_ERR_UPDATE_EF_KEYD     0x10000015
#define ECA_MODULE_ERR_SAM_SELECT_EF_GDO     0x10000016
#define ECA_MODULE_ERR_SAM_READ_EF_GDO     0x10000017
#endif
