Reference Manual for the CLOUD 370x F Contactless Desktop Readers
Document Version 1.0
Last revised on 2014-07-22
Page 34 of 82
6.2.4:
PAPDU_MIFARE_AUTHENTICATE
This command is used to authenticate using the key number. Refer to section 3.2.2.1.6 of [PCSC3] for
further details.
Command APDU:
Command
CLA
INS
P1
P2
Lc
Data Le
General Authenticate
0xFF
0x86 0x00 0x00 0x05 data XX
The data structure is defined as follows:
Byte # Value Description
B0
0x01
Version
B1
Block Number MSB (always 0x00 for MIFARE Classic cards)
B2
Block Number LSB
B3
0x60
MIFARE Classic Key A
0x61
MIFARE Classic Key B
B4
Key number – shall be set to 0x01
Response APDU:
Data
Status Word
—
SW1, SW2
Example:
Load Key A unencrypted and authenticate for block 6 (sector 1, actually) with that key:
APDU:
FF 82 00 60 06 FF FF FF FF FF FF
SW12:
9000 (OK)
APDU:
FF 86 00 00 05 01 00 06 60 01
SW12:
9000 (OK)