PMA82TP-BA
48 / 50
PROXRUNNER BLUETOOTH RFID SCANNER - Reference manual
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.
7.2. D
ESFIRE
SAM / RC171
KEY DIVERSIFICATION
7.2.1. DES or Triple DES key diversification
The key diversification algorithm described here is the one provided by Desfire
SAM. Please refer to the corresponding datasheet for details.
The algorithm takes as inputs :
A 16-byte Triple-DES master key (Km)
29
The 7-byte card serial number (uid)
It provides as output :
The 16-byte diversified key specific to this card (Ku).
Here’s the flowchart :
Km
0-7
Km
8-16
TDES
or DES
uid
0
uid
1
uid
2
uid
3
uid
4
uid
5
uid
6
b
0
b
1
b
2
b
3
b
4
b
5
b
6
b
7
h
88
Km
Ku
0-7
Ku
8-16
TDES
or DES
The diversified key now be used for Desfire authentication.
7.2.2. Mifare key diversification
The Mifare diversification algorithm described here is provided both by Desfire
SAM and by NXP RC171 coprocessor. Please refer to the corresponding
datasheets for details.
a. Basis
The algorithm takes as inputs :
A 6-byte master key (Km)
A 16-byte Triple-DES diversification key (Kd)
30
29
If both halves are equals, the key maps to a single DES key
30
If both halves are equals, the key maps to a single DES key