CHIPDRIVE CLOUD 4700F 905511 数据表
产品代码
905511
CLOUD
47
X
0
F
R
EFERENCE
M
ANUAL
35
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.
[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)