Moin,

Am Wed, 19 Jul 2006 22:15:24 +0200 schrieb Andreas Jellinghaus:

> could you do me a favor? please use opensc-tool or opensc-explorer
> to dumb such a file and check if each record starts with xx yy
> where xx = 01, 02, ... and yy is the length of the record - 2
> (length of the rest).

-->8-snip--
OpenSC [3F00/5015]> cat 4404
Record 1:
00000000: 01 38 30 36 30 09 0C 03 32 35 31 03 02 06 40 30 [EMAIL PROTECTED]
00000010: 12 04 10 A0 3F 78 A2 6B 1F A3 71 D2 1A AD 02 C2 ... ?x¢k.£qÒ.­.Â
00000020: B8 47 53 A1 15 30 13 30 0D 04 04 43 04 43 01 02 žGS¡.0.0...C.C..
00000030: 01 00 80 02 06 87 02 02 00 FB                   .........û
--snap-8<--

> that would be an extra unneeded header we need to get rid of. (I 
> found that on some other card I have from siemens).

That is the expected response (the command APDU was 00 B2 01 04 00)
according to ISO 7816-4 7.3.3 READ RECORD, Table 50 (at least in my
draft) "Case b - Complete read of one record (the Le field contains
only bytes set to '00')", because the file is in SIMPLE-TLV format.

> I'll try to find my old patch and commit it and/or send it to you for
> testing.

That would be great.

> one more issue I know of is: they use relative paths, we use absolute
> paths. we had patches for that too, but my ugly hacked worked, while
> the cleaner solutions did not, and I never understood why.
> that might be the next issue you can stumble upon.

Hmm, indeed. But at least that is clearly defined. From PKCS#15 
section 2:
| If the path starts with the MF identifier (3F00_16), it is 
| an absolute path; otherwise it is a relative path. A 
| relative path shall start with the identifier ‘3FFF_16’ 
| or with the identifier of the current DF.

-- 
Henryk Plötz
Grüße aus Berlin
~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~
~ Help Microsoft fight software piracy: Give Linux to a friend today! ~

Attachment: pgp4Ik8e7BRtg.pgp
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to