Data Sheet

Table Of Contents
Chips and readers- USER’S GUIDE
UG 14
Version 1.0
HOW TO SET A KEY AS THE ACTIVE ONE
A - Before SelectCard command
! ActiveX component : Mx.CurrentKey
Possible values are :
- mpkP
i
Kd (i=0 to 7)
- mpkP
i
Kc(i=0 to 7)
! C Library : Clib_w_SelectCurrentKey
Clib_w_SelectCurrentKey (KeyNum)
! Low level : SELECT_CURRENT_KEY command
Host
80h 52h 00h P2h 08h 8 * 00h
Coupler
52h 90h 00h
P2 : Key number
00h - Exchange Key Ke: used for key loading operation.
01h - Debit Key Kd0
02h - Credit Key Kc0
03h - Debit Key Kd1
04h - Credit Key Kc1
.....
0Fh - Debit Key Kd7
10h - Credit key Kc7
B - Before SelectPage and Authentify command
At this stage you need to precise both the key number and the chip serial number (as
you may be working with several chips).
Actually this operation is performed automatically by the selectCard command as it
knows the key number thanks to the CurrentKey property, and the Serial Number is
given by the chip during the selection phase.
When using a standard coupler, the DiversifyKey command returns a useless data
(random number). The returned data are used only with a personalisation coupler. More
information are given in the personalisation kit.
! ActiveX component : Mx.DiversifyKey
Mx.DiversifyKey (KeyNum, Chip Serial Number, Databack)
! C Library : Clib_w_DiversifyKey
Clib_w_DiversifyKey (KeyNum, Chip Serial Number, Databack)
! Low level : DIVERSIFY_KEY command
Host
80h 52h 00h P2h 08h
Serial
Number
Coupler
52h 90h 00h
P2 : Key number
00h - Exchange Key Ke: used for key loading operation.
01h - Debit Key Kd0
02h - Credit Key Kc0
03h - Debit Key Kd1
04h - Credit Key Kc1
.....
0Fh - Debit Key Kd7
10h - Credit key Kc7
Second step:
tell the coupler which
key has to be used