I tried all four combinations of old/new code for init and for signing. only cards initialized with old code and signing with new code is broken, so we could as quick fix revert the change.
also comparing log files (new init, new sign and old init, old sign) I see these difference: the 4402 file -30 39 30 14 0C 0B 50 72 69 76 61 74 65 20 4B 65 090...Private Ke -79 03 02 06 C0 04 01 01 30 0F 04 01 45 03 02 05 y.......0...E... -20 03 02 03 B8 02 02 00 91 A0 00 A1 0E 30 0C 30 ............0.0 -06 04 04 3F 00 50 15 02 02 04 00 FF FF FF FF FF ...?.P.......... +30 38 30 14 0C 0B 50 72 69 76 61 74 65 20 4B 65 080...Private Ke +79 03 02 06 C0 04 01 01 30 0E 04 01 45 03 02 05 y.......0...E... +20 03 02 03 B8 02 01 91 A0 00 A1 0E 30 0C 30 06 ...........0.0. +04 04 3F 00 50 15 02 02 04 00 FF FF FF FF FF FF ..?.P........... (plus lots of ff bytes. "-" is new, "+" is old code). and 4401 is different: 30 43 30 1A 0C 14 53 65 63 75 72 69 74 79 20 4F 0C0...Security O 66 66 69 63 65 72 20 50 49 4E 03 02 06 C0 30 03 fficer PIN....0. 04 01 FF A1 20 30 1E 03 02 00 0D 0A 01 01 02 01 .... 0.......... 06 02 01 08 02 01 08 80 01 01 04 01 00 30 06 04 .............0.. -04 3F 00 50 15 30 2E 30 04 03 02 06 C0 30 03 04 .?.P.0.0.....0.. -01 01 A1 21 30 1F 03 02 02 4C 0A 01 01 02 01 04 ...!0....L...... -02 01 08 02 01 08 80 02 00 83 04 01 00 30 06 04 .............0.. -04 3F 00 50 15 00 00 00 00 00 00 00 00 00 00 00 .?.P............ +04 3F 00 50 15 30 2D 30 04 03 02 06 C0 30 03 04 .?.P.0-0.....0.. +01 01 A1 20 30 1E 03 02 02 4C 0A 01 01 02 01 04 ... 0....L...... +02 01 08 02 01 08 80 01 83 04 01 00 30 06 04 04 ............0... +3F 00 50 15 00 00 00 00 00 00 00 00 00 00 00 00 ?.P............. if I compare new init, new sign with old init, new sign, I also see these difference: -[pkcs15-crypt] asn1.c:X:asn1_decode_entry: decoding 'keyReference' returned 145 +[pkcs15-crypt] asn1.c:X:asn1_decode_entry: decoding 'keyReference' returned -111 and [pkcs15-crypt] asn1.c:X:asn1_decode_entry: decoding 'pinReference' -[pkcs15-crypt] asn1.c:X:asn1_decode_entry: decoding 'pinReference' returned 131 +[pkcs15-crypt] asn1.c:X:asn1_decode_entry: decoding 'pinReference' returned -125 and of course signing doesn't work. "new" is 0.11.11 with my debug patch, old is 0.11.11 with my debug patch and change 3401 reverted. Regards, Andreas _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel