SPRINGCARD SAS PRNHSP01 用户手册

下载
页码 118
PMD2271-BA
page 26 of 118
S
PRING
C
ARD
 PC/SC C
OUPLERS
 - H663 
GROUP
 - Developer's reference manual
3.2.3.
GENERAL AUTHENTICATE instruction
The  GENERAL AUTHENTICATE  instruction performs a Mifare Classic authentication (CRYPTO1).
The application must provide the index of the key to be used; this key must have been loaded into
the H663 through a previous LOAD KEY instruction.
Do not invoke this function if the currently activated PICC is not a Mifare Classic!
GENERAL AUTHENTICATE command APDU
CLA
INS
P1
P2
Lc
Data In
Le
h
FF
h
86
h
00
h
00
h
05
See below
-
GENERAL AUTHENTICATE Data In bytes
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4
h
01
h
00
Block
number
Key
location
or Key
type
Key
index
The block number (byte 2) is the address on the Mifare card, where the application tries to be
authenticated (note: this is the block number, not the sector number).
The key location or Key type (byte 3) must be either:
h
60 for authentication using a CRYPTO1 “A” key (standard PC/SC-defined value),
h
61 for authentication using a CRYPTO1 “B” key (standard PC/SC-defined value),
Same value as the P1 parameter used in the LOAD KEY instruction:  
h
00 or  
h
20  (SpringCard
specific value).
The key index (byte 4) is defined as follow:
If key type (byte 3) is 
h
60, use values 
h
00 to 
h
03 to select one of the “A” keys stored in the H663's
volatile memory, and values 
h
20 to 
h
2F to select one of the “A” keys stored in the H663's non-
volatile memory (if available),
If key type (byte 3) is 
h
61, use values 
h
00 to 
h
03 to select one of the “B” keys stored in the H663's
volatile memory, and values 
h
20 to 
h
2F to select one of the “B” keys stored in the H663's non-
volatile memory (if available),
If key type (byte 3) is either 
h
00 or 
h
20 (same value as the P1 parameter used in the LOAD key
instruction), choose one of the values allowed for the P2 parameter in the same LOAD key
instruction (SpringCard specific value).
SPRINGCARD, the SPRINGCARD logo, PRO ACTIVE and the PRO ACTIVE logo are registered trademarks of PRO ACTIVE SAS.
All other brand names, product names, or trademarks belong to their respective holders.
Information in this document is subject to change without notice. Reproduction without written permission of PRO ACTIVE is forbidden.