-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathconstants.py
39 lines (32 loc) · 968 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# smart card commands
SELECT = [0x00, 0xA4, 0x04, 0x00]
GET_RESPONSE = [0x00, 0xC0, 0x00, 0x00]
READ_RECORD = [0x00, 0xB2]
VERIFY = [0x00, 0x20]
# emv commands
GET_PROCESSING_OPTIONS = [0x80, 0xA8]
GET_DATA = [0x80, 0xCA]
GENERATE_AC = [0x80, 0xAE]
# data tags
TAG_ATC = [0x9F, 0x36]
TAG_LAST_ONLINE = [0x9F, 0x13]
TAG_PIN_TRIES = [0x9F, 0x17]
TAG_AID = [0x4f]
TAG_AL = [0x50]
TAG_SFI = [0x88]
TAG_PDOL = [0x9f, 0x38]
# misc
IPAY = [0x31, 0x50, 0x41, 0x59, 0x2E, 0x53, 0x59, 0x53, 0x2E, 0x44, 0x44, 0x46, 0x30, 0x31]
COUNTRY_CODE_SWEDEN = [0x07, 0x52]
CURRENCY_CODE_SWEDEN = [0x07, 0x52]
# VISA
VISA_AID = [0xA0, 0x00, 0x00, 0x00, 0x03, 0x10, 0x10]
VISA_APPL_LABEL = "VISA"
VISA1 = [0x01, 0x0c]
VISA2 = [0x02, 0x0c]
# Mastercard
MASTERCARD_AID = [0xA0, 0x00, 0x00, 0x00, 0x04, 0x10, 0x10]
MASTERCARD_APPL_LABEL = "MASTERCARD"
# Maestro
MAESTRO_AID = [0xA0, 0x00, 0x00, 0x00, 0x04, 0x30, 0x60]
MAESTRO_APPL_LABEL = "MAESTRO"