ACR1255U-J1 – Reference Manual
Version V1.01
www.acs.com.hk
Page 41 of 73
6.4. PICC Commands for MIFARE® Classic (1K/4K) memory cards
6.4.1.
Load Authentication Keys
This command loads the authentication keys to the reader. The authentication keys are used to
authenticate the particular sector of the MIFARE Classic (1K/4K) memory card. Two kinds of
authentication key locations are provided: volatile and non-volatile key locations.
Load Authentication Keys APDU Format (11 bytes)
Command
Class
INS
P1
P2
Lc
Data In
Load
Authentication
Keys
FFh
82h
Key
Structure
Key
Number
06h
Key
(6 bytes)
Where:
Key Structure
1 byte.
00h = Key is loaded into the reader volatile memory.
Other = Reserved.
Key Number
1 byte.
00h – 01h = Non-volatile memory for storing keys. The keys are
permanently stored in the reader and will be retained in the reader’s
memory even if the reader is disconnected from the computer. It can
store up to 32 keys inside the reader non-volatile memory.
Note: The default value is FF FF FF FF FF FFh.
Key
6 bytes.
The key value loaded into the reader. Example: FF FF FF FF FF FFh
Load Authentication Keys Response Format (2 bytes)
Response
Data Out
Result
SW1
SW2
Load Authentication Keys Response Codes
Results
SW1
SW2
Meaning
Success
90h
00h
The operation is completed successfully.
Error
63h
00h
The operation is failed.
Example:
// Load a key {
FF FF FF FF FF FFh
} into the volatile memory location 00h.
APDU = {FF 82 00 00 06
FF FF FF FF FF FFh
}