PMA8N9P-BC
55 / 58
PROX'N'ROLL 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.
a. DES or Triple-DES key diversification
The algorithm takes as inputs :
A 16-byte master key (Km)
The card serial number (uid)
33
It provides as output :
The 16-byte diversified key specific to this card (Ku).
HMAC
Km
uid
0-n
Ku
h
88
The diversified key can now be used either for Desfire authentication, or for
HMAC-MD5 signature.
b. Mifare key diversification
The algorithm takes as inputs :
A 16-byte master key (Km)
The 4-byte card serial number (uid)
The 1-byte block address (adr)
It provides as output :
The 6-byte Mifare key specific to the couple card + address (Ku).
HMAC
Km
uid
0-4
h
88
adr
b
0
b
1
b
2
b
3
b
4
b
5
b
6
b
7
Ku
0
Ku
1
Ku
2
Ku
3
Ku
4
Ku
5
b
8
b
9
b
10
b
11
b
12
b
13
b
14
b
15
Note
: the
adr
parameter is the either the sector number (not the block)
number) or fixed to
h
00, depending on the configuration in the Mifare Classic
Card Acceptance Template.
33
The UID is 7-byte long for a Desfire card, 4-byte long for a Mifare card. The same diversification
algorithm is usable whatever the length is.