]> cvs.zerfleddert.de Git - proxmark3-svn/blame - armsrc/emvdataels.h
REM: "hf legic load" has been removed. It doesnt have a purpose anymore.
[proxmark3-svn] / armsrc / emvdataels.h
CommitLineData
9206d3b0 1//Data elements for EMV transactions.
2#include <stdint.h>
3#ifndef __EMVDATAELS_H
4#define __EMVDATAELS_H
5//Known AIDs
6extern const uint8_t AID_VISA[5];
7extern const uint8_t AID_VISA_DB[7] ;
8extern const uint8_t AID_VISA_C[8] ;
9extern const uint8_t AID_VISA_D[8] ;
10extern const uint8_t AID_VISA_E[7] ;
11extern const uint8_t AID_VISA_I[7] ;
12extern const uint8_t AID_VISA_P[7] ;
13extern const uint8_t AID_VISA_ATM[8];
14extern const uint8_t AID_MASTERCARD[7];
15extern const uint8_t AID_MAESTRO[7];
16extern const uint8_t AID_MAESTRO_UK[7];
17extern const uint8_t AID_MAESTRO_TEST[5];
18extern const uint8_t AID_SELF_SERVICE[6];
19extern const uint8_t AID_AMEX[5];
20extern const uint8_t AID_EXPRESSPAY[];
21extern const uint8_t AID_LINK[7];
22extern const uint8_t AID_ALIAS[7];
23
24//Master data file for PSE
25extern const uint8_t DF_PSE[];
26
27typedef struct{
28 uint8_t tag[2];
29 char description[255];
30}tagdescription;
31
32extern const tagdescription EMV_TAG_LIST[62]; //SW1 return values
33extern const uint8_t SW1_RESPONSE_BYTES[];
34extern const uint8_t SW1_WRONG_LENGTH[] ;
35extern const uint8_t SW12_OK[];
36extern const uint8_t SW12_NOT_SUPPORTED[] ;
37extern const uint8_t SW12_NOT_FOUND[];
38extern const uint8_t SW12_COND_NOT_SAT[];
39extern const uint8_t PIN_BLOCKED[] ;
40extern const uint8_t PIN_BLOCKED2[] ;
41extern const uint8_t PIN_WRONG[] ;
42
43//AIP bitmasks details
44#define AIP_CHIP_SUPPORTED 0x80
45#define AIP_MSR_SUPPORTED 0x40
46
47#define AIP_SDA_SUPPORTED 0x40
48#define AIP_DDA_SUPPORTED 0x20
49#define AIP_CARDHOLDER_VERIFICATION 0x10
50#define AIP_TERMINAL_RISK 0x08
51#define AIP_ISSUER_AUTH 0x04
52#define AIP_CDA_SUPPORTED 0x01
53
54//human readable error messages
55//file structure, read from AFL
56#endif //__EMVDATAELS_H
Impressum, Datenschutz