![ACS ACM1252U-Y3 Reference Manual Download Page 34](http://html1.mh-extra.com/html/acs/acm1252u-y3/acm1252u-y3_reference-manual_2841767034.webp)
ACM1252U-Y3
– Reference Manual
Version 1.03
www.acs.com.hk
Page 34 of 92
www.acs.com
.hk
5.2.4.
PICC Commands for MIFARE® Classic (1K/4K) Memory Cards
5.2.4.1.
Load Authentication Keys
This command will load the authentication keys into the reader. The authentication keys are used to
authenticate the particular sector of the MIFARE Classic 1K/4K Memory Card.
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 = Volatile memory for storing a temporally key. The key will
disappear once the reader is disconnected from the PC. Two volatile
keys are provided. The volatile key can be used as a session key for
different sessions.
Default Value = {FF FF FF FF FF FFh}
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
Load Authentication Keys Response Codes
Results
SW1 SW2
Meaning
Success
90 00h
The operation was completed
successfully.
Error
63 00h
The operation 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
}