F_Ld_Key - Unitech MR350 MKII Software Manual

Data collection terminal
Hide thumbs Also See for MR350 MKII:
Table of Contents

Advertisement

3.11

F_LD_KEY

This function loads/updates a triple DES key into a key file.
Compatible with ISO7816 or Gemplus command set
Gemplus
Function call:
void F_LD_KEY( S_LD_KEY* );
Data structure of S_LD_KEY
typedef struct
{
int Class;
int Mode;
unsigned char ShortId;
int KeyNum;
int KeyType;
int KeyVer;
unsigned char KeyValue[16];
int IdOk;
unsigned char Sw12[2];
} S_LD_KEY;
Input parameter :
Class
Mode
ShortId
KeyNum
KeyType
KeyVer
KeyValue[] :holds key data,[0]=K15,[1]=K14,[15]=K0
Output parameter : This function updates the following parameters.
IdOk
Sw12[]
: 0 = NORMAL
: 0 = direct select
: short EF identifier, This is needed if Mode=1.
: key number 0,2,4,6 only.
: 0 = ADM
1 = pay
; 3 = Authen
16 = sign
:key version for AP
: 0 = OK
1 = Timeout
; 3 = EDC error
5 = Parity error
:SW1-SW2
1 = SECURE
1 = implicit select
2 = Log
2 = No card
7 = see SW1-SW2
20

Advertisement

Table of Contents
loading

Table of Contents