ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 12 of 45
5.0. PICC Commands (T=CL Emulation) for Mifare Classic
Memory Cards
5.1. Load Authentication Keys
The “Load Authentication Keys command” will load the authentication keys into the reader. The
authentication keys are used to authenticate the particular sector of the Mifare 1K/4K Memory Card.
Volatile authentication key location is provided.
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.
0x00h = Key is loaded into the reader volatile memory.
Other = Reserved.
Key Number:
1 Byte.
0x00h ~ 0x01h = Key Location. The keys will disappear once the reader is
disconnected from the PC.
Key
: 6 Bytes.
The key value loaded into the reader. E.g. {FF FF FF FF FF FFh}
Load Authentication Keys Response Format (2 Bytes)
Response
Data Out
Result
SW1
SW2
Response Codes
Results SW1 SW2 Meaning
Success
90 00h
The operation is completed successfully.
Error
63 00h
The operation is failed.
Example:
Load a key {FF FF FF FF FF FFh} into the key location 0x00h.
APDU = {FF 82 00 00 06 FF FF FF FF FF FFh}