Unitech mr350 mkii Software Guide

Page of 33
 
16
3.6  F_CRT_EF 
   This function creates an Elementary File. User should use function F_INI_ACC 
   to load Access Condition before creates DF/EF. 
 
 
Compatible with ISO7816 or Gemplus command set 
 
 
Gemplus 
 
Function call 
void F_CRT_EF( S_CRT_EF* ); 
 
Data structure of S_CRT_EF 
   typedef struct 
   { 
      int Class; 
      unsigned char FileId[2]; 
      int FDB; 
      int RecLen; 
      int BodyLen; 
      int IdOk; 
      unsigned char Sw12[2]; 
      unsigned char CRYin[3]; 
      unsigned char CRYout[3]; 
   } S_CRT_EF; 
 
    Input parameter : 
     Class 
 
: 0 = NORMAL 
; 1 = SECURE 
     FileId[]   
: EF identifier 
     FDB 
 
: File descrirtion byte 
     RecLen   
: record length (for fix length structure only) 0:other 
     BodyLen 
: 0x0000--0xFFFF 
 
   Output parameter : This function updates the following parameters. 
     IdOk       : 0 = OK   
 
1 = Timeout   
2 = No card 
; 3 = EDC error 
5 = Parity error 
7 = see SW1-SW2 
     Sw12[]     :SW1-SW2 
      CRYin[]    :CRYcks 2,1,0 only for secure message 
     CRYout[]   :CRYcks 7,6,5 only for secure message