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