40
Bit3
Rights
Bit2
Rights
Bit1
Rights
Bit0
y
list
access
master
key
NumOfKey: the number of keys
Return Value
0 if successful; otherwise, Nonzero. Reference Table 1.11
Example
int st;
unsigned char aid[4]={0x02,0x00,0x00};
unsigned char setting=0xef;
st= fw_createApp_desfire(icdev,aid,setting,0x0e);/* With 14 keys */
int fw_delAID_desfire(int icdev,unsigned char* AID);
Description
Delete application
Parameters
icdev: Value of Device Handle.
AID
: Application ID
Return Value
0 if successful; otherwise, Nonzero. Reference Table 1.11
Example
int st;
unsigned char aid[3]={0x02,0x00,0x00};
st= fw_delAID_desfire(icdev,aid);
int
fw_changeKeySetting_desfire(int
icdev,unsigned
char
newSet,char*
sessionKey);
Description
Change the master key settings
Parameters
icdev: Value of Device Handle.
newSet: new key settings
The meaning of 8-bit Application master key can be decribed as below:
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
changeKey
Access Rights
Bit3
changeKey
Access
Rights
Bit2
changeKey
Access
Rights
Bit1
changeKey
Access
Rights
Bit0
Configuration
changeable
Free
create/delete
Free
director
y
list
access
Allow
change
master
key
8-bit of card’s master key, represent the following meanings:
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
RFU
RFU
RFU
RFU
Configuration
Free
Free
Allow