--On Thursday, July 08, 2004 02:08:09 +0200 "Kevin Andre Vatn."
<[EMAIL PROTECTED]> wrote:

> cards [1]. I'm following the guide in Chap. 5  Writing an Card
> Application. A tutorial of some sort. But when I come to 'Create the CHV1
> File' on page 213, I'm a little lost... to say at least. It reads that I
> should run the following apdu command to create the (reserved file ID
> 0000) file. apdu command: 
> CLA    INS   P1  P2  LC   Data
> F0     E0    00  01  10   FFFF 0017 0000 01 00 F4FF44 01 03 X2XX22


You should probably review the relevant reference documentation as well
Create File command (P 97-104) describes what the bytes in the data part of
a CREATE FILE command mean and how to interpret and construct them.

Bytes 9-11 (F4FF44) and 14-16 (X2XX22) are the access control bits. Bytes
The first set controls what kind of AC (a pin, a key, or a fixed ac), and
the second set is a key number for the ac types that need one. 
The nibble '4' means AUT. the AUT AC is satisfied when if the appropriate
key has been validated using the VERIFY KEY command. 
The nibble 'F' means NEVR (or NEVER), an AC that can never be satisfied. a
NEVR AC does not need a key number and so the example uses X to mean "it
doesn't matter what this value is" (this sort of thing is called a "don't
care")
Substitute 0's for the X's and you will be fine. 


_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to