1 //Data elements for EMV transactions.
7 typedef struct tagdescription tagdescription
;
10 extern const uint8_t AID_VISA
[5];
11 extern const uint8_t AID_VISA_DB
[7] ;
12 extern const uint8_t AID_VISA_C
[8] ;
13 extern const uint8_t AID_VISA_D
[8] ;
14 extern const uint8_t AID_VISA_E
[7] ;
15 extern const uint8_t AID_VISA_I
[7] ;
16 extern const uint8_t AID_VISA_P
[7] ;
17 extern const uint8_t AID_VISA_ATM
[8];
18 extern const uint8_t AID_MASTERCARD
[7];
19 extern const uint8_t AID_MAESTRO
[7];
20 extern const uint8_t AID_MAESTRO_UK
[7];
21 extern const uint8_t AID_MAESTRO_TEST
[5];
22 extern const uint8_t AID_SELF_SERVICE
[6];
23 extern const uint8_t AID_AMEX
[5];
24 extern const uint8_t AID_EXPRESSPAY
[];
25 extern const uint8_t AID_LINK
[7];
26 extern const uint8_t AID_ALIAS
[7];
28 //Master data file for PSE
29 extern const uint8_t DF_PSE
[];
30 extern const tagdescription EMV_TAG_LIST
[62]; //SW1 return values
31 extern const uint8_t SW1_RESPONSE_BYTES
[];
32 extern const uint8_t SW1_WRONG_LENGTH
[] ;
33 extern const uint8_t SW12_OK
[];
34 extern const uint8_t SW12_NOT_SUPPORTED
[] ;
35 extern const uint8_t SW12_NOT_FOUND
[];
36 extern const uint8_t SW12_COND_NOT_SAT
[];
37 extern const uint8_t PIN_BLOCKED
[] ;
38 extern const uint8_t PIN_BLOCKED2
[] ;
39 extern const uint8_t PIN_WRONG
[] ;
41 //AIP bitmasks details
42 #define AIP_CHIP_SUPPORTED 0x80
43 #define AIP_MSR_SUPPORTED 0x40
45 #define AIP_SDA_SUPPORTED 0x40
46 #define AIP_DDA_SUPPORTED 0x20
47 #define AIP_CARDHOLDER_VERIFICATION 0x10
48 #define AIP_TERMINAL_RISK 0x08
49 #define AIP_ISSUER_AUTH 0x04
50 #define AIP_CDA_SUPPORTED 0x01
52 //human readable error messages
53 //file structure, read from AFL
54 #endif //__EMVDATAELS_H