AET62 Reference Manual
Version 1.0
Page 11 of 37
idvation GmbH
Otto-Hesse-Straße 19 / T5
Phone +49 6151 4923021
D-64293 Darmstadt
Fax +49 6151 3689296
www.idvation.com
6.2.
Authentication
The “Authentication command” uses the keys stored in the reader to execute authentication with the
Mifare 1K/4K card (PICC). Two types of authentication keys are used: TYPE_A and TYPE_B.
Command
Class
INS
P1
P2
P3
Data In
Authentication FF
88
00
Block Number
Key Type
Key Number
Table 11: Load Authentication Keys APDU Format (6 Bytes) [Obsolete]
Command
Class
INS
P1
P2
Lc
Data In
Authentication FF
86
00
00
05
Authenticate Data Bytes
Table 12: Load Authentication Keys APDU Format (10 Bytes)
Byte1
Byte2
Byte3
Byte4
Byte5
Version 0x01
0x00
Block Number
Key Type Key Number
Table 13: Authenticate Data Bytes (5 Byte)
Block Number:
1 Byte. This is the memory block to be authenticated.
Key Type
: 1 Byte
0x60
= Key is used as a TYPE A key for authentication.
0x61
= Key is used as a TYPE B key for authentication.
Key Number
: 1 Byte
0x00 ~ 0x1F
= Key Location.
Note:
For Mifare 1K Card, there are 16 sectors and each sector consists of 4 consecutive blocks. E.g. Sector
0x00
consists of Blocks {
0x00, 0x01, 0x02 and 0x03
}; Sector
0x01
consists of Blocks {
0x04, 0x05, 0x06 and
0x07
}; the last sector
0x0F
consists of Blocks {
0x3C, 0x3D, 0x3E and 0x3F
}.
Once the authentication is executed successfully, there is no need to execute the authentication again provided that the
blocks to be accessed are belonging to the same sector. Please refer to the Mifare 1K/4K specification for more details.
Response
Data Out
Result
SW1
SW2
Table 14: Load Authentication Keys Response Format (2 Bytes)
Results
SW1
SW2
Meaning
Success 90
00
The operation is completed successfully.
Error
63
00
The operation is failed.
Table 15: Load Authentication Keys Response Codes