Hi Actually I'm not sure if in case of unpadded PIN blocks, should the initial > APDU prefix include CLA INS P1 P2 only or an additional 0x00 (which you > refer to as empty Lc) or not ? IMHO CCID spec leaves room for interpretation > there... I remember different behavior from different readers/cards and > cards in different protocol mode. >
My experience is that sending CLA INS P1 P2 without Lc works with more readers than including Lc=0 in the controll buffer. Some readers work with both versions (for example the SCM532) and some others only work with one of the two interpretation of the CCID spec. The Dell USB Smartcard Keyboard does not work with either version. Peter
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel