User's Manual

SCL010/01X REFERENCE MANUAL 35
6.2.3. STORAGE_CARD_CMDS_LOAD_KEYS
6.2.3.1. Description
Some type of user tokens like MIFARE Classic may require that an authentication happens before
any data can be read or written. To perform this authentication, keys need to be loaded in the
reader’s memory using this command.
6.2.3.2. Format
CLA INS P1 P2 Lc Data in
0xFF 0x82 0x00 Key Type Key Length Key value
Where P2 can have the following values (please refer to MIFARE documentation from NXP for
further details on what is key A and Key B):
0x60 to use the Key A
0x61 to use the Key B
6.2.3.3. Response
Data Out
SW1 + SW2
6.2.3.4. Status Words
SW1 SW2 Description
0x90 0x00 NO ERROR
0x83 Reader key not supported
0x85 Secured transmission not supported
0x87 Non volatile memory not available
0x88 Key number not valid
0x69
0x89 Key length not correct