ACS ACM1252U-Y3 Reference Manual page 35

Usb nfc reader module
Table of Contents

Advertisement

5.2.4.2.
Authentication for MIFARE® Classic (1K/4K)
This command uses the keys stored in the reader to do authentication with the MIFARE Classic
1K/4K card (PICC). Two types of authentication keys are used: TYPE_A and TYPE_B.
Load Authentication Keys APDU Format (6 bytes)
Command
Authentication
Load Authentication Keys APDU Format (10 bytes)
Command
Authentication
Authenticate Data Bytes (5 bytes)
Byte1
Version 01h
Where:
Block Number
Key Type
Key Number
Load Authentication Keys Response Format (2 bytes)
Response
Result
ACM1252U-Y3 – Reference Manual
Version 1.03
Class
INS
FFh
88h
Class
INS
FFh
86h
Byte 2
Byte 3
00h
Block Number
1 byte. The memory block to be authenticated.
For MIFARE Classic 1K card, it has a total of 16 sectors and each sector
consists of four consecutive blocks (e.g., Sector 00h consists of blocks
{00h, 01h, 02h and 03h}; sector 01h consists of blocks {04h, 05h, 06h
and 07h}; the last sector 0Fh consists of blocks {3Ch, 3Dh, 3Eh and
3Fh}. Once the authentication is done successfully, there is no need to
do the authentication again provided that the blocks to be accessed are
belonging to the same sector. Please refer to the MIFARE Classic 1K/4K
specification for more details.
Note: Once the block is authenticated successfully, all the blocks
belonging to the same sector are accessible.
1 byte.
60h = Key is used as a TYPE A key for authentication.
61h = Key is used as a TYPE B key for authentication.
1 byte.
00 ~ 01h = Volatile memory for storing keys. The keys will disappear
when 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.
Data Out
SW1
SW2
Obsolete]
[
P1
P2
Block
00h
Number
P1
P2
00h
00h
Byte 4
Byte 5
Key Type
Key Number
P3
Data In
Key Type
Key Number
Lc
Data In
Authenticate
05h
Data Bytes
Page 35 of 92
www.acs.com
info@acs.com.hk
www.acs.com.hk
.hk

Advertisement

Table of Contents
loading

Table of Contents