Data Sheet

Chips and readers- USERíS GUIDE
UG 13
Version 1.0
KEY LOADING
To perform this complex operation, use the function supplied with the libraries (C Libraries,
ActiveX component). You will find encryption algorithm in annex. C source code is provided
in the C libary, and ActiveX component manage automatically all security calculation.
You need to give the following parameter :
# Key number
# Exchange Key
# New Key value
! ActiveX method : Mx.KeyLoading
Use Mx.KeyLoading (KeyNum, LoadingType, ExchangeKey,NewValue) method to
load the key in the coupler at the appropriate place.
Keynum may have to following value :
- mpkP
i
Kd (i=0 to 7)
- mpkP
i
Kc
(i=0 to 7)
Example : to load the default keys as keys 6 using the default exchange key ...
Mx.KeyLoading (mpkP
6
Kd, mklmXORKe,´$5C$BC$F1$DA$45$D5$FB$5Fª,
´$F0$E1$D2$C3$B4$A5$96$87ª)
Mx.KeyLoading (mpkP
6
Kc, mklmXORKe,´$5C$BC$F1$DA$45$D5$FB$5Fª,
´$76$65$54$43$32$21$10$00ª)
! C Library : Clib_w_KeyLoading
Clib_w_KeyLoading (KeyNum, LoadingType, ExchangeKey,NewValue)
! Low level : LOAD_KEY_FILE
Calculate the Encrypted key thanks to the C library algorythm (see annexe A) and use
the LOAD_KEY_FILE command...
Host
80h D8h 00h P2 OCh Encrypted key
Coupler
D8h 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
First step in
security is to load the
secret keys into the
coupler