TTI_EP_CAPP_LOAD = '10'
TTI_EP_LOYALTY_PURCHASE = '11'
TTI_EP_CAPP_PURCHASE = '09'
TTI_EP_PURCHASE = '06'
TTI_ED_PURCHASE = '05'
TTI_EP_LOAD = '02'
TTI_ED_LOAD = '01'


PKGAID = 'A000000333534254FF000008'
MDLAID = 'A00000033353425400000008'
INSTAID = 'D156000015CCECB8AECDA8BFA8'
INSTALL_PARAM = '00000A80090004030308'
SES_INST_AID = 'A00000033353425400000009'
PROXY_AID = ''

KEY_TYPE_CK = 'B2'
KEY_TYPE_MK = '96' # maintance  Key 
KEY_TYPE_PURCHASE = '91'
KEY_TYPE_LOAD = '92'
KEY_TYPE_TAC = '93'
KEY_TYPE_RLPK = '95'#reload PINN
KEY_TYPE_ULK = '97'
KEY_TYPE_XX = '98'
KEY_TYPE_PULK = '94'
KEY_TYPE_EAK = '52'
KEY_TYPE_IAK = '5A'
KEY_TYPE_ABLK = '9C'
KEY_TYPE_AULK = '96'
KEY_TYPE_XXX = '96'
KEY_TYPE_XXX = '96'
KEY_TYPE_PIN = '02'


#  File type of EF
EF_TP_DF = '00'
EF_TP_KEF = '01'
EF_TP_TEF = '02'
EF_TP_CEF = '03'
EF_TP_LVEF = '04'
EF_TP_LFEF = '05'
EF_TP_EDEP = '06'



CMD_CREATE_FILE = 1
CMD_WRITE_KEY = 2
CMD_UPDATE_RECORD = 3
CMD_READ_RECORD = 4
CMD_APPEND_RECORD = 5
CMD_READ_BIANRY = 6
CMD_UPDATE_BINARY = 7
CMD_INITIALIZE_FOR_CAPP_LOAD = 8
CMD_INITIALIZE_FOR_LOAD = 9 
CMD_INITIALIZE_FOR_PURCHASE = 10
CMD_INITIALIZE_FOR_CAPP_PURCHASE = 11
CMD_INITIALIZE_FOR_PURCHASE_WITHLOYALTY = 12
CMD_DEIBT_FOR_PURCHASE = 13 
CMD_UPDATE_CAPP_BINARYCACHE = 14
CMD_UPDATE_CAPP_DATACACHE = 15
CMD_CREDIT_FOR_LOAD = 16
CMD_GET_BALANCE = 17
CMD_GET_TRANSACTION_PROVE = 18
CMD_VERIFY_PIN = 19
CMD_UNBLOCK_PIN = 20
CMD_CHANGE_PIN = 21
CMD_RELOAD_PIN = 22 
CMD_APPLICATION_BLOCK = 23 
CMD_APPLICATION_UNBLOCK = 24
CMD_CARD_BLOCK = 25
CMD_EXTERNAL_AUTHENTICATION = 26
CMD_INTERNAL_AUTHENTICATION = 27
CMD_GET_MESSAGE = 28


SFI_LOAD_LOG = '09' 
SFI_TS_LOG = '18'
SFI_NON_LOCAL_TS_LOG = '10'


# backup and restore key
AUTH_KEY_VER = '01'
AUTH_KEY_VALUE = '23'*16
ENC_KEY_VER = '01'
ENC_KEY_VALUE = '23'*16


# GP
GP_K1 = '404142434445464748494A4B4C4D4E4F'
GP_K2 = '404142434445464748494A4B4C4D4E4F'
GP_K3 = '404142434445464748494A4B4C4D4E4F'
GP_KVER = '00'



