Authentication For Mifare Classic (1K/4K) - ACS ACR3x mobile Reference Manual

Hide thumbs Also See for ACR3x mobile:
Table of Contents

Advertisement

9.2.2.

Authentication for MIFARE Classic (1K/4K)

This command uses the keys stored in the ACR3x 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 (10 bytes)
Command
Authentication
Authenticate Data Bytes (5 bytes):
Byte 1
Byte 2
Version
01h
Where:
Block Number
Key Type
Key Number
Load Authentication Keys Response Format (2 bytes)
Response
Result
Load Authentication Keys Response Codes
Results
Success
ACR3x – Reference Manual
Version 1.03
Class
INS
P1
FFh
86h
00h
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, wherein each
sector consists of 4 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 belong to
the same sector.*
Please refer to the MIFARE Classic 1K/4K specification for more details.
*Note: Once the block is authenticated successfully, all blocks belonging
to the same sector are accessible.
1 byte.
60h = Key is used as TYPE A key for authentication
61h = Key is used as TYPE B key for authentication
1 byte.
00h ~ 01h = Volatile memory for storing keys. They keys will be removed
when the reader is disconnected from the computer. Two volatile keys
are provided. The volatile key can be used as a session key for different
sessions.
Data Out
SW1
SW2
SW1 SW2
90 00h
The operation was completed successfully
P2
Lc
Data In
00h
05h
Authenticate Data Bytes
Byte 4
Byte 5
Key Type
Key Number
Meaning
Page 59 of 77
info@acs.com.hk
www.acs.com.hk

Advertisement

Table of Contents
loading

Table of Contents