On Jan 28, 2008 1:58 PM, Mathias Tausig <[EMAIL PROTECTED]> wrote: > Hy!
Hello, > I am trying to implement a secure PIN entry with a class2 reader. The > examples I have found on the net (on the PSCS-lite page, for instance) > work well, as long as the length of the PIN is constant. If I want the PIN > to have a variable length, auhentication doesn't work any lonegr. The > problem is, that I have to enter the LC byte of the card APDU before I > execute SCardControl. > I am using Siemens CardOS 4.3b cards (which, as far as I can see, do not > support PIN padding), an Omnikey reader (plus corresponding driver) and > pcsc-lite for communication. AFAIK it is not possible to NOT padd a PIN using the PIN entry command of a class2 reader. The CCID specification does not specify a no padding option. My CCID driver has support of this feature with the SPR532 reader using a proprietary command of the reader. The patch [1] was applied two years ago and its use is not really documented (even in the source code). If I am correct you just need to send an Class 1 APDU (CLA, INS, P1, P2) and the reader will insert the PIN without padding. If you are not using the SPR532 reader I have no solution. Bye, [1] http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2005-January/001277.html -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
