David Corcoran wrote:

> >I am trying to create a file and store some data in it, but am having
> >trouble understanding the Cyberflex documentation.
> >
> >>From page 127 of the Cyberflex programmers guide:
> >"To create a binary file of 100 bytes with a FileID of 1234 supporting
> >AUTO full access rights, issue the following command:
> >
> >APDU:00,E0,00,00,10,0064,1234,02,01,00,00,FF0000FF00000000"
> >
> >I am lost after the 00,E0,00,00,10. I do not understand the data table.
> >Is this APDU command specific to cyberflex access cards?

I believe citi.umich.edu has some example code in their sc7816 tar file that creates 
files.  The xcard example found in www.linuxnet.com shows it for program file.

Anyway, to decypher it, you need to ignore all "," (commas) and see that the first 5 
bytes are APDU commands.

0x10 (5th byte) means that 16 bytes of data follows.

The 16 bytes are the various fields needed to create a file.  To read the details on 
each of the field, you need to look at various tables found on pages 155-58 
(SelectFile command).

If you get our Windows kit, you can see the actual APDUs being used to create the 
various file types.  I don't have the tool handy to do so.  Sorry.

We'll be releasing a more accurate and usable documentation in few weeks.  Keep 
checking www.cyberflex.slb.com.....

Good luck,

Danny
--
[EMAIL PROTECTED]  Smart Card Engineer, Schlumberger APC
TEL/FAX: +1 512-331-3727         8311 N RR 620, Austin, TX 78726  U.S.A.
U.S. Export approved Crypto Java Card at:  http://www.cyberflex.slb.com/


***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to