]>
Commit | Line | Data |
---|---|---|
7dcd37fc | 1 | // ICEMAN 2017, this file looks similar to emvdataels.h headerfile. |
9206d3b0 | 2 | //Data elements for EMV transactions. |
7dcd37fc | 3 | |
9206d3b0 | 4 | #include "emvdataels.h" |
9206d3b0 | 5 | |
53d5dc64 | 6 | //Known AIDs |
7 | struct tagdescription { | |
8 | uint8_t tag[2]; | |
9 | char description[255]; | |
10 | }; | |
9206d3b0 | 11 | |
12 | const uint8_t AID_VISA[] = {0xa0,0x00,0x00,0x00,0x03}; | |
13 | const uint8_t AID_VISA_DB[] = {0xa0,0x00,0x00,0x00,0x03,0x10,0x10}; | |
14 | const uint8_t AID_VISA_C[] = {0xa0,0x00,0x00,0x00,0x03,0x10,0x10,0x01}; | |
15 | const uint8_t AID_VISA_D[] = {0xa0,0x00,0x00,0x00,0x03,0x10,0x10,0x02}; | |
16 | const uint8_t AID_VISA_E[] = {0xa0,0x00,0x00,0x00,0x03,0x20,0x10}; | |
17 | const uint8_t AID_VISA_I[] = {0xa0,0x00,0x00,0x00,0x03,0x30,0x10}; | |
18 | const uint8_t AID_VISA_P[] = {0xa0,0x00,0x00,0x00,0x03,0x80,0x10}; | |
19 | const uint8_t AID_VISA_ATM[]= {0xa0,0x00,0x00,0x00,0x03,0x99,0x99,0x10}; | |
20 | const uint8_t AID_MASTERCARD[]= {0xa0,0x00,0x00,0x00,0x04,0x10,0x10}; | |
21 | const uint8_t AID_MAESTRO[] = {0xa0,0x00,0x00,0x00,0x04,0x30,0x60}; | |
22 | const uint8_t AID_MAESTRO_UK[]= {0xa0,0x00,0x00,0x00,0x05,0x00,0x01}; | |
23 | const uint8_t AID_MAESTRO_TEST[]={0xb0,0x12,0x34,0x56,0x78}; | |
24 | const uint8_t AID_SELF_SERVICE[]={0xa0,0x00,0x00,0x00,0x24,0x01}; | |
25 | const uint8_t AID_AMEX[] = {0xa0,0x00,0x00,0x00,0x25}; | |
26 | const uint8_t AID_EXPRESSPAY[]= {0xa0,0x00,0x00,0x00,0x25,0x01,0x07,0x01}; | |
27 | const uint8_t AID_LINK[] = {0xa0,0x00,0x00,0x00,0x29,0x10,0x10}; | |
28 | const uint8_t AID_ALIAS[] = {0xa0,0x00,0x00,0x00,0x29,0x10,0x10}; | |
29 | ||
30 | //Master data file for PSE | |
31 | //const uint8_t DF_PSE[] = {0x32, 0x50, 0x41, 0x59, 0x2E, 0x53, 0x59, 0x53, 0x2E, 0x44, 0x44, 0x46, 0x30, 0x31}; | |
32 | const uint8_t DF_PSE[] = {0x32, 0x50, 0x41, 0x59, 0x2E, 0x53, 0x59, 0x53, 0x2E, 0x44, 0x44, 0x46, 0x30, 0x31}; | |
33 | ||
34 | //TAGS | |
35 | ||
36 | //SW1 return values | |
37 | const uint8_t SW1_RESPONSE_BYTES[] = {0x61}; | |
38 | const uint8_t SW1_WRONG_LENGTH[] = {0x6c}; | |
39 | const uint8_t SW12_OK[] = {0x90,0x00}; | |
40 | const uint8_t SW12_NOT_SUPPORTED[] = {0x6a,0x81}; | |
41 | const uint8_t SW12_NOT_FOUND[] = {0x6a,0x82}; | |
42 | const uint8_t SW12_COND_NOT_SAT[] = {0x69,0x83}; | |
43 | const uint8_t PIN_BLOCKED[] = {0x69,0x84}; | |
44 | const uint8_t PIN_BLOCKED2[] = {0x69,0x84}; | |
45 | const uint8_t PIN_WRONG[] = {0x63}; | |
46 | ||
47 | const tagdescription EMV_TAG_LIST[] = { | |
48 | {"\x4f\x00","Application Identifier (AID)"}, | |
49 | {"\x50\x00","Application Label"}, | |
50 | {"\x57\x00","Track 2 Equivalent Data"}, | |
51 | {"\x5a\x00","Application Primary Account Number (PAN)"}, | |
52 | {"\x6f\x00","File Control Information (FCI) Template"}, | |
53 | {"\x70\x00","Record Template"}, | |
54 | {"\x77\x00","response message template format 2"}, | |
55 | {"\x80\x00","response message template format 1"}, | |
56 | {"\x82\x00","application interchange profile"}, | |
57 | {"\x83\x00","command template"}, | |
58 | {"\x84\x00","df name"}, | |
59 | {"\x86\x00","issuer script command"}, | |
60 | {"\x87\x00","application priority indicator"}, | |
61 | {"\x88\x00","short file identifier"}, | |
62 | {"\x8a\x00","authorisation response code"}, | |
63 | {"\x8c\x00","card risk management data object list 1 (cdol1)"}, | |
64 | {"\x8d\x00","card risk management data object list 2 (cdol2)"}, | |
65 | {"\x8e\x00","cardholder verification method (cvm) list"}, | |
66 | {"\x8f\x00","certification authority public key index"}, | |
67 | {"\x93\x00","signed static application data"}, | |
68 | {"\x94\x00","application file locator"}, | |
69 | {"\x95\x00","terminal verification results"}, | |
70 | {"\x97\x00","transaction certificate data object list (tdol)",}, | |
71 | {"\x9c\x00","transaction type"}, | |
72 | {"\x9d\x00","directory definition file"}, | |
73 | {"\xa5\x00","proprietary information"}, | |
74 | {"\x5f\x20","cardholder name"}, | |
75 | {"\x5f\x24","application expiration date yymmdd"}, | |
76 | {"\x5f\x25","application effective date yymmdd"}, | |
77 | {"\x5f\x28","issuer country code"}, | |
78 | {"\x5f\x2a","transaction currency code"}, | |
79 | {"\x5f\x2d","language preference"}, | |
80 | {"\x5f\x30","service code"}, | |
81 | {"\x5f\x34","application primary account number (pan) sequence number"}, | |
82 | {"\x5f\x50","issuer url"}, | |
83 | {"\x92\x00","issuer public key remainder"}, | |
84 | {"\x9a\x00","transaction date"}, | |
85 | {"\x9f\x02","amount, authorised (numeric)"}, | |
86 | {"\x9f\x03","amount, other (numeric)"}, | |
87 | {"\x9f\x04","amount, other (binary)"}, | |
88 | {"\x9f\x05","application discretionary data"}, | |
89 | {"\x9f\x07","application usage control"}, | |
90 | {"\x9f\x08","application version number"}, | |
91 | {"\x9f\x0d","issuer action code - default"}, | |
92 | {"\x9f\x0e","issuer action code - denial"}, | |
93 | {"\x9f\x0f","issuer action code - online"}, | |
94 | {"\x9f\x11","issuer code table index"}, | |
95 | {"\x9f\x12","application preferred name"}, | |
96 | {"\x9f\x1a","terminal country code"}, | |
97 | {"\x9f\x1f","track 1 discretionary data"}, | |
98 | {"\x9f\x20","track 2 discretionary data"}, | |
99 | {"\x9f\x26","application cryptogram"}, | |
100 | {"\x9f\x32","issuer public key exponent"}, | |
101 | {"\x9f\x36","application transaction counter"}, | |
102 | {"\x9f\x37","unpredictable number"}, | |
103 | {"\x9f\x38","processing options data object list (pdol)"}, | |
104 | {"\x9f\x42","application currency code"}, | |
105 | {"\x9f\x44","application currency exponent"}, | |
106 | {"\x9f\x4a","static data authentication tag list"}, | |
107 | {"\x9f\x4d","log entry"}, | |
108 | {"\x9f\x66","card production life cycle"}, | |
109 | {"\xbf\x0c","file control information (fci) issuer discretionary data"} | |
110 | }; |