User Manual

53
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,
0x40,0x02};
st= fw_MFPlusL3_AuthenSectorKey(icdev,1,1,key);//Verify KeyA password of 1
sector
int fw_MFPlusL3_UpdateKey(int ihic, unsigned int keyAddr,unsigned char* newKey);
Description
Update secret key of the three-level card
Parameters
ihic: value of device handle
keyAddr: the corresponding clock number of secret key or data,reference to
appendix I
newKey: new secret key
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,
0xEE,0xFF};
st= fw_MFPlusL3_UpdateKey(icdev,0x9000,key);//Update the master secret key
int fw_MFPlusL3_ReadWithPlain(int ihic, unsigned int blkAddr,unsigned char
blkNum, unsigned char* rdata);
Description
Read the block data of the three-level card in the clear
Parameters
ihic: handle of device
blkAddr: the starting block NO
blkNum: the number of clock to read(Usually 1~3
rdata: received data to be read
Return
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned char readData[16];
st= fw_MFPlusL3_ReadWithPlain(icdev,4, 3,readData);
int fw_MFPlusL3_WriteWithPlain(int ihic, unsigned int blkAddr,unsigned char
blkNum,unsigned char* wdata);