Reference Manual
Prox–DU & Prox–SU
www.gemalto.com
DOC118569D
Public Use
Page 58/145
Warning: If the Load MIFARE
®
key security bit is set to one, a 6 bytes transport key must be
added to the Data field and the total key length must be equal to 12.
The Transport keys are secret and are available upon request.
To load the secret key A0h-A1h-A2h-A3h-A4h-A5h into the key number KN using location
storage in RAM the following APDU command should be used:
CLA INS P1 P2 Lc
Data
FFh
82h
00h
KN
06h
A0h A1h A2h A3h A4h A5h
With KN = 80 to 159 (50h to 9Fh)
To load the secret key A0h-A1h-A2h-A3h-A4h-A5h into the key number KN using location
storage in EEPROM the following APDU command should be used:
CLA INS P1 P2 Lc
Data
FFh
82h
20h
KN
06h
A0h A1h A2h A3h A4h A5h
With KN = 0 to 79 (00h to 4Fh)
Note: Loading key number 0 to 79 in RAM is forbidden. Loading key number 80 to 159 in
EEPROM is forbidden. The error code SW1-SW2 69h 88h will be returned (Key number not
valid)
Note: After delivery the non volatile keys stored in EEPROM (number 0 to 79) are initialized
to a default value:
The keys number 00 to 39 are initialized with value A0h A1h A2h A3h A4h A5h
The keys number 40 to 79 are initialized with value B0h B1h B2h B3h B4h B5h
Note: Each time the Prox–DU and the Prox–SU is powered, the volatile keys stored in RAM
(number 80 to 159) are initialized to a default value:
The keys number 80 to 119 are initialized with value A0h A1h A2h A3h A4h A5h
The keys number 120 to 159 are initialized with value B0h B1h B2h B3h B4h B5h
General Authenticate command
The General Authenticate command is used to perform an authentication between the
contactless reader/writer and a MIFARE
®
memory block.
For MIFARE
®
1K, MIFARE
®
4K and MIFARE
®
Mini it is mandatory to perform the
General Authenticate command before each read or write memory block operation.
Otherwise, an authentication error will occur.
For MIFARE
®
Ultralight the General Authenticate operation is not required.
SW1-SW2
Command execution status
Command executed successfully 90h 00h
Others
Refer to the error codes table below
Содержание Prox-DU
Страница 4: ......