15
3.5 F_CRT_DF
This function creates a dedicated 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_DF( S_CRT_DF* );
Data structure of S_CRT_DF
typedef struct
{
int Class;
unsigned char FileId[2];
int Opt;
int NameLen;
unsigned char DFName[16];
int IdOk;
unsigned char Sw12[2];
unsigned char CRYin[3];
unsigned char CRYout[3];
} S_CRT_DF;
Input parameter :
Class
: 0 = NORMAL
; 1 = SECURE
FileId[]
: DF identifier
Opt
: RFU
NameLen
: 0--16
DFName[]
: store DF name
Output parameter :
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