Hello, On Jul 17, 2011, at 00:34 , Peter Koch wrote: > Control TxBuffer: 1E 1E 02 00 00 10 06 02 FF 00 00 00 00 00 00 05 00 00 00 00 > 20 00 00 00 > -> 000000 69 14 00 00 00 00 39 00 00 00 00 1E 02 00 00 10 06 02 FF 00 00 00 > 00 00 00 00 20 00 00 00 > <- 000000 80 02 00 00 00 00 39 00 00 00 6B 80 > Control RxBuffer: 6B 80 > > Your CardOS card has a fixed length PIN format while your TCOS card has a > variable length PIN format. The PC/SC standard is not precise when it comes > to secure PIN entry with avariable length PIN format. > > Some reader expect just 4 bytes (CLA INS P1 P2) without Le. Some other > readers insist on getting a 0-Le byte. And very few readers handle both cases. This should be tested and documented if possible. Creating conditional reader-specific code is probably inevitable.
> And they should use better return codes than 6B:80 (no idea what this > SW-value is supposed to mean) This is from PC/SC v2 spec case 0x6B80: /* Wrong data in the buffer, rejected by firmware */ -- @MartinPaljak.net +3725156495 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel