User Manual

52
keyL3[16]={0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xaa,0xbb,0xcc,0xd
d,0x90,0x03};
st= fw_MFPlusL1_SwitchToL3(icdev,keyL3);
int fw_MFPlusL2_SwitchToL3(int ihic,unsigned char* key);
Description
Verify three-level secret key for two-level card and upgrade to three-level
Parameters:
ihic: value of device handle
key: three-level secret key for upgrading
Return
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char
keyL3[16]={0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xaa,0xbb,0xcc,0xd
d,0x90,0x03};
st= fw_MFPlusL2_SwitchToL3(icdev,keyL3);
int fw_MFPlusL3_AuthenL3Key(int ihic,unsigned char* key, unsigned short
keyAddr);
Description
Verify three-level secret key for three-level card
Parameters:
ihic: value of device handle
key: three-level secret key
keyAddr:the corresponding clock number of secret or data,refer to appendix I
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char
key[16]={0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xaa,0xbb,0xcc,0xdd,
0x90,0x00};
st= fw_MFPlusL3_AuthenL3Key(icdev,key,0x9000);//验证主控密钥
int fw_MFPlusL3_AuthenSectorKey(int ihic,unsigned char keyType,unsigned int
sectorNo,unsigned char* key);
Description
Verify sector key for three-level card
Parameters
ihic: handle of device
keyType: the type of secret key,1,KeyA; 2,KeyB
sectorNo: secret key NO, 0~ 31 0~39
key: sector key