/[pcsclite]/tags/ccid/ccid-1.3.8/README
ViewVC logotype

Diff of /tags/ccid/ccid-1.3.8/README

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 423 by rousseau, Wed Sep 10 12:27:28 2003 UTC revision 1909 by rousseau, Fri Mar 3 17:20:43 2006 UTC
# Line 6  USB CCID IFD Handler Line 6  USB CCID IFD Handler
6  specifications from the USB working group.  specifications from the USB working group.
7    
8    
9  Author:  Authors:
10  =======  ========
11    
12  - Ludovic Rousseau <ludovic.rousseau@free.fr>  - Ludovic Rousseau <ludovic.rousseau@free.fr>
13    - Carlos Prados for the PPS and ATR parsing code (taken from his
14      towitoto driver) in towitoko/ directory.
15    - Olaf Kirch for the T=1 TPDU code (from the OpenCT package) in openct/
16      directory. I (Ludovic Rousseau) greatly improved this code.
17    
18    
19  Supported CCID readers:  Supported CCID readers:
20  =======================  =======================
21    
22  (in alphabetical order)  (in alphabetical order)
23    - ActivCard USB reader 3.0
24    - Advanced Card Systems ACR 38U-CCID [16]
25      old versions of this reader have a bug: the reader do timeout when a
26      special USB frame is sent from the reader. If the frame size if a
27      multiple of wMaxPacketSize the communication is stopped.
28    - Athena ASE IIIe USB V2 [29]
29    - Cherry XX33 keyboard [?]
30    - Cherry XX44 keyboard (SmartBoard G83-6744) [18]
31    - Cherry SmartTerminal ST2000U [35]
32    - Cherry ST-1044U [27]
33    - Dell keyboard SK-3106 [?]
34    - Dell smart card reader keyboard [?]
35    - Eutron SIM Pocket Combo [25]
36    - Eutron CryptoIdentity [26]
37  - Gemplus GemPC 433 SL [2]  - Gemplus GemPC 433 SL [2]
38  - Gemplus GemPC Key [3]  - Gemplus GemPC Key [3]
39    - Gemplus GemPC PinPad
40  - Gemplus GemPC Twin [4]  - Gemplus GemPC Twin [4]
41    - Gemplus GemCore POS Pro
42    - Gemplus GemCore SIM Pro
43    - Kobil KAAN Base [19]
44    - Kobil KAAN Advanced [20]
45    - Kobil KAAN SIM III [21]
46    - Kobil mIDentity [22]
47  - OmniKey CardMan 3121 [5]  - OmniKey CardMan 3121 [5]
48  - SCM Micro SCR 331 [6]  - SCM Micro SCR 331 [6]
49      You shall upgrade the firmware [17] using version 5.18 or later.
50    - SCM Micro SCR 331-DI [11]
51      You shall upgrade the firmware [17] using version 6.22 or later.
52  - SCM Micro SCR 335 [7]  - SCM Micro SCR 335 [7]
53      The firmware of this reader can't be upgraded so be sure to buy a
54      recent model with firmware 5.14 or later
55  Unsupported CCID readers:  - SCM Micro SCR 355
56  =========================  - SCM Micro SCR 3310 [30]
57    - SCM Micro SCR 3311 [31]
58  - LTC31 from C3PO [8]  - SCM Micro SPR 532 [9]
59    Communication errors between the card and the reader. Some cards can't    You shall contact Torsten Maykranz <tmaykranz@scmmicro.de> to get a
60    send an ATR.  I have the exact same symptoms with the Windows driver    firmware upgrade.
61    provided by C3PO.  - SmartEpad (v 2.0) [32]
62      The firmware gives a very strange description of the reader (like a
63      dwDefaultClock: 1024.000 MHz). So do not expect a perfect behavior.
64    - Verisign Secure Storage Token [24]
65    - Verisign Secure Token [?]
66    
67    
68    Should work but untested by me:
69    ===============================
70    
71    I would like to get these readers to perform test and validation and
72    move them in the supported list above. If you are one of the
73    manufacturers, please, contact me.
74    
75    - C3PO LTC32 [13]
76    - Gemplus GemPC Express
77    - OmniKey CardMan 3821 [37]
78    - OmniKey CardMan 5125 [33]
79    - OmniKey CardMan 6121 [36]
80    - SCM Micro SCR 331-DI NTTCom [23]
81    - SCM Micro SCR 3310-NTTCOM [28]
82    - SCM Micro SCR 3320 [32]
83    - SCM Micro SCR 333 [15]
84    - SCM SCR 3340 ExpressCard54 [34]
85    - Silitek SK-3105 keyboard [12] or C3PO TLTC2USB [14]
86    
87    
88    Unsupported or partly supported CCID readers:
89    =============================================
90    
91    - ActivCard USB reader 2.0 [10]
92        The reader do timeout when a special USB frame is sent from the
93        reader. If the frame size if a multiple of wMaxPacketSize the
94        communication is stopped.
95    - C3PO LTC31 [8]
96        The reader works fine with Linux kernel 2.4 but does not with Linux
97        kernel 2.6. The ioctl() syscall returns EINVAL (Invalid argument)
98    - RSA SecureID SID800 [24]
99        The USB layer is completely broken. The reader is sometimes not even
100        seen on the USB bus (same problem under Windows). Maybe newer
101        devices will work?
102    
103    
104  Supported operating systems:  Supported operating systems:
# Line 41  Supported operating systems: Line 109  Supported operating systems:
109    to libusb)    to libusb)
110    
111    
112    Debug informations:
113    ===================
114    
115    The driver uses the debug function provided by pcscd. So if pcscd sends
116    its debug to stderr (pcscd --foreground) then the CCID will also send
117    its debug to stderr. If pcscd sends its debug to syslog (by default)
118    then the CCID will also send its debug to syslog.
119    
120    You can change the debug level using the Info.plist configuration file.
121    The Info.plist is installed, by default, in
122    /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
123    
124    The debug level is set in the ifdLogLevel field. It is a binary OR
125    combinaison of 4 different levels.
126    - 1: critical: important error messages
127    - 2: info:     informative messages like what reader was detected
128    - 4: comm:     a dump of all the bytes exchanged between the host and the
129                   reader
130    - 8: periodic: periodic info when pcscd test if a card is present (every
131                   1/10 of a second)
132    
133    By default the debug level is set to 3 (1 + 2) and correspond to the
134    critical and info levels.
135    
136    You have to restart the driver so it read the configuration file again
137    and use the new debug level value.  To restart the driver you just need
138    to unplug all your CCID readers so the the driver is unloaded and then
139    replug your readers. You can also restart pcscd.
140    
141    
142  Known problems:  Known problems:
143  ===============  ===============
144    
145  All platforms  MacOSX libusb
146      readers enumeration  """""""""""""
147      """""""""""""""""""      There is a bug in libusb that crash the libusb library when you
148        You may have wrong reader identification if you connect two or      unplug a reader and replug it in another USB socket.  So if you
149        more reader at the exact same time.      unplug a reader replug it in the same USB socket.
150    
151        The daemon pcscd and the CCID driver do not list connected readers      see http://sourceforge.net/tracker/index.php?func=detail&aid=886778&group_id=1674&atid=101674
       in the same order. The driver has no way to know which reader has  
       been detected as a new reader by pcscd.  
   
       So if you plug two readers at the same time (for example if you  
       start pcscd with two readers connected or if you plug a USB hub  
       with two readers on the hub) you may have this (with two readers  
       foo and bar):  
       - pcscd scans the USB bus and finds a new CCID reader foo and  
         calls the driver  
       - the CCID driver scan the USB bus and finds a new different  
         reader bar  
       - pcscd continues scanning the USB bus and finds the second reader  
         bar and calls the driver  
       - the CCID driver scan the USB bus and finds an unused reader foo.  
   
         Now the reader foo will be called bar by pcscd and bar will be  
         called foo. This may not be a problem if the two readers have  
         the same name. But it is strange to insert a card in the  
         physical reader foo and see pcscd detect the card insertion in  
         the reader he calls bar.  
   
         The solution is to use IFDHCreateChannelByName() instead of  
         IFDHCreateChannel() and specify the USB device to use. But pcscd  
         does not implement IFDHCreateChannelByName() yet. Maybe in the  
         future.  
   
         Another solution is to plug readers one after the other and not  
         at the same time.  
   
 MacOS X/Darwin  
     hotplug  
     """""""  
       Due to libusb work in progress the driver may crash on a reader  
       insertion after a few insert/remove actions.  
       So if your reader is always connected you should not have  
       problems.  
       A new version of libusb should fix this bug  
   
 *BSD  
     libusb  
     """"""  
       The libusb does not yet support USB interrupt endpoints. You will  
       notice that the driver will stop working as soon as you insert a  
       card in the reader.  
       A new version of libusb should fix this bug.  
152    
153    
154  Licence:  Licence:
155  ========  ========
156    
157    This program is free software; you can redistribute it and/or modify    This library is free software; you can redistribute it and/or modify it
158  it under the terms of the GNU General Public License as published by the  under the terms of the GNU Lesser General Public License as published by
159  Free Software Foundation; either version 2 of the License, or (at your  the Free Software Foundation; either version 2.1 of the License, or (at
160  option) any later version.  your option) any later version.
161    
162    This program is distributed in the hope that it will be useful, but    This library is distributed in the hope that it will be useful, but
163  WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
164  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
165  General Public License for more details.  General Public License for more details.
166    
167    You should have received a copy of the GNU General Public License    You should have received a copy of the GNU Lesser General Public License
168  along with this program; if not, write to the Free Software Foundation,  along with this library; if not, write to the Free Software Foundation,
169  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
170    
171    
172  History:  History:
173  ========  ========
174    
175    0.9.4 - 27 November 2005, Ludovic Rousseau
176        - add support for Eutron SIM Pocket Combo, Eutron CryptoIdentity,
177          Verisign Secure Token and VeriSign Secure Storage Token, GemPC
178          Card (PCMCIA), SCM SCR331-DI NTTCom, SCM Micro SCR 3310-NTTCom,
179          Cherry ST-1044U, Cherry SmartTerminal ST-2XXX
180        - add support of PC/SC v2 part 10 CM_IOCTL_GET_FEATURE_REQUEST add
181          support of FEATURE_VERIFY_PIN_DIRECT and FEATURE_MODIFY_PIN_DIRECT
182          remove support of IOCTL_SMARTCARD_VENDOR_VERIFY_PIN (now
183          obsoleted). A sample code is available in examples/scardcontrol.c
184        - we need pcsc-lite 1.2.9-beta9 since some structures used for PIN
185          pad readers are defined by pcsc-lite
186        - some (bogus) cards require an extra EGT but the ATR does not say
187          so. We try to detect the bogus cards and set TC1=2
188        - IFDHSetProtocolParameters(): only use a data rate supported by the
189          reader in the PPS negociation, otherwise we stay at the default
190          speed.
191        - calculate and store the read timeout according to the card ATR
192          instead of using a fixed value of 60 seconds
193        - increase the read timeout if the card sends and WTX request
194        - improve support of GemPC Twin and GemPC Card (serial protocol)
195        - reset the device on close only if DRIVER_OPTION_RESET_ON_CLOSE is
196          set. The problem was that a device reset also disconnects the
197          keyboard on a keyboard + reader device.
198        - use color logs
199        - some minor bugs removed
200    
201    
202    0.9.3 - 14 March 2005, Ludovic Rousseau
203        - change the licence from GNU GPL to GNU Lesser GPL (LGPL)
204        - add support for ACS ACR 38, Kobil KAAN Base, Kobil KAAN Advanced,
205          Kobil KAAN SIM III, Kobil KAAN mIDentity, SCM Micro SCR 331,
206          SCM Micro SCR 331-DI, SCM Micro SCR 335, SCM Micro SCR 3310,
207          SCM Micro SCR 532, Cherry XX44 readers
208        - improve communication speed with readers featuring "Automatic PPS
209          made by the CCID"
210        - switch the Cherry xx33 reader in ISO mode if power up in EMV mode
211          fails.
212        - add support of character level readers. Thanks to O2Micro for the
213          patch
214        - add support for the O2Micro OZ776S reader but the reader firmware
215          is still bogus
216        - check firmware version to avoid firmwares with bugs. You can still
217          use a bogus firmware by setting DRIVER_OPTION_USE_BOGUS_FIRMWARE
218          in Info.plist
219        - some minor bugs removed
220    
221    0.9.2 - 15 August 2004, Ludovic Rousseau
222        - T=1 TPDU code:
223          . the work on T=1 TPDU code was possible thanks to Gemplus
224            validation team who helped me test, debug and bring the code to
225            an EMV validation level. Thanks to Jérôme, Jean-Yves, Xavier and
226            the Gemplus readers department
227          . error code was not checked correctly
228          . avoid a (nearly) infinite loop when resynch are needed.
229          . correctly initialise an internal value to allow more than one
230            reader to work
231        - multi-slots readers
232          . add support for multi-slots readers. The only one I have is a
233            SCM Micro SCR 331-DI with a contact and a contactless interface.
234            The contactless interface may or may not work for you since the
235            reader uses proprietary (undocumented) commands.
236        - GemPC Twin serial reader
237          . perform a command (get the reader firmware) to be sure a GemPC
238            Twin (serial or pcmcia) reader is connected
239          . use a dynamic timeout when reading the serial port.
240            The first timeout used when detecting the reader is 2 seconds to
241            not wait too long if no reader is connected. Later timeouts are
242            set to 1 minute to allow long time APDU.
243        - use `pkg-config libpcsclite --cflags` to locate the pcsc-lite
244          header files
245        - use `pkg-config --print-errors --atleast-version=1.2.9-beta5 libpcsclite`
246          to test the pcsc-lite version
247        - code improvements thanks to the splint tool (http://www.splint.org/)
248    
249    0.9.1 - 1 July 2004, Ludovic Rousseau
250        - I forgot to define IFD_PARITY_ERROR in a .h file
251    
252    0.9.0 - 1 July 2004, Ludovic Rousseau
253        - The T=1 TPDU automata from Carlos Prados' Towitoko driver is very
254          limited and do not support error management mechanisms.
255          I then used the T=1 TPDU automata from OpenCT (OpenSC project).
256          This automata is much more powerful but still lacks a lot of error
257          management code.
258          I then added all the needed code to reach the quality level
259          requested by the EMV standard.
260        - add support for new readers:
261          . Advanced Card Systems ACR 38
262          . Cherry XX33
263          . Dell keyboard SK-3106
264          . Dell smart card reader keyboard
265          . SCR 333
266        - add support of multi procotol cards (T=0 and T=1)
267        - the debug level is now dynamic and set in the Info.plist file (no
268          need to recompile the driver any more)
269        - add support for the libusb naming scheme: usb:%04x/%04x:libusb:%s
270        - INSTALL: add a "configuring the driver for the serial reader
271          (GemPC Twin)" part
272        - use `pkg-config libpcsclite --variable=usbdropdir` so you do not
273          have to use --enable-usbdropdir=DIR or --enable-ccidtwindir=DIR
274          even if pcscd does not use the default /usr/local/pcsc/drivers
275        - add support of IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
276          IOCTL_SMARTCARD_VENDOR_VERIFY_PIN in IFDHControl()
277        - read ifdDriverOptions from Info.plist to limit the use of
278          IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE (idea from Peter Williams)
279        - provide an example of use of SCardControl()
280          IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
281          IOCTL_SMARTCARD_VENDOR_VERIFY_PIN in example/
282        - add a --enable-pcsclite option (default to yes) so that the driver
283          can be compiled for a different framework (one needing
284          tokenparser.l like Solaris)
285        - Reset action is power off and power on, not just power on
286        - use the include files from pcsc-lite
287        - add a mechanism to allow power on at 1.8V, 3V and then 5V as
288          specified by ISO 7816. We still use 5V for now to avoid problems
289          with non ISO compliant cards
290    
291    0.4.1 - 14 February 2004, Ludovic Rousseau
292        - distribute missing files readers/supported_readers.txt and
293          src/create_Info_plist.pl
294          'make install' failed because of this.
295    
296    0.4.0 - 13 February 2004, Ludovic Rousseau
297        - support of T=1 with TPDU readers. A lot of the T=1 code comes from
298          Carlos Prados towitoko driver.
299          My code is GNU GPL, his code is GNU LGPL so the global driver is
300          GNU GPL
301        - PPS negotiation if the reader does not do it automatically
302        - add support for the Silitek SK-3105 keyboard. It's a USB device
303          with multiple interfaces
304        - use the create_Info_plist.pl script to generate the installed
305          Info.plist from an Info.plist template and a list of supported
306          readers. The Info.plist was too "complex" to maintain by hand
307          since it now contains 11 entries
308        - add support of IFDHCreateChannelByName to avoid wrong reader
309          enumeration. This is not complete if you have multiple _identical_
310          readers. You need to use a > 1.2.0 pcsc-lite version (not yet
311          released at that time)
312        - build but do not install the serial ccidtwin driver by default
313          since it is useless on computers without a serial port or without
314          this reader for example.
315        - read and write timeouts are not symmetric. write timout can be
316          shorter since the reader and card is not supposed to do anything
317          before receiving (write) a command
318        - do not try to find usb.h and other libusb files if
319          --disable-libusb is used. Needed if you only want to build the
320          serial driver.  Thanks to Niki Waibel for the patch
321        - add a --enable-ccidtwindir argument to ./configure to specify the
322          serial GemPC Twin installation directory
323        - debug and code improvements and simplifications
324    
325    0.3.2 - 4 November 2003, Ludovic Rousseau
326        - src/commands.c: correct a stupid bug that occurs with an APDU with
327          2 bytes response.
328        - Info.plist: add SPR 532 in list of supported readers
329        - parse.c: do not exit if the InterfaceClass is 0xFF (proprietary).
330          It is the case with old readers manufactured before the final
331          release of the CCID specs.
332        - move LTC31 reader from unsupported to supported reader list. It
333          was my f ault since in used odd INS byte in my test applet and odd
334          INS bytes are forbidden by ISO 7816-4 ch. 5.4.2 Instruction byte.
335          Thanks to Josep Moné s Teixidor for pointing the problem.
336        - src/commands.c: comment out the automatic GET RESPONSE part. I
337          don't think it should be in the driver. Maybe in pcscd instead?
338    
339    0.3.1 - 23 September 2003, Ludovic Rouseau
340        - add --enable-multi-thread (enabled by default) for thread safe
341          support an APDU multiplexing. You will need pcsc-lite-1.2.0-rc3 or
342          above to use this feature.
343        - add --enable-libusb=PATH option is your libusb is not installed in
344          /usr or /usr/local
345        - honor DESTDIR in install rules (closes [ #300110 ]). Thanks to
346          Ville Skyttä for the patch.
347        - src/ccid.c: do not switch the GemPC Key and GemPC Twin in APDU
348          mode since it also swicth in EMV mode and may not work with non
349          EMV cards
350        - src/ccid_serial.c: complete reimplementation of the Twin serial
351          protocol using a finite state automata (code much simpler)
352    
353  0.3.0 - 10 September 2003, Ludovic Rousseau  0.3.0 - 10 September 2003, Ludovic Rousseau
354      - support of GemPC Twin connected to a serial port. Thanks to Niki      - support of GemPC Twin connected to a serial port. Thanks to Niki
355        W. Waibel for a working prototype.        W. Waibel for a working prototype.
# Line 127  History: Line 358  History:
358      - support of APDU mode instead of just TPDU if the reader support      - support of APDU mode instead of just TPDU if the reader support
359        it. Thanks to Jean-Luc Giraud for the idea and inspiration I got        it. Thanks to Jean-Luc Giraud for the idea and inspiration I got
360        from his "concurrent" driver.        from his "concurrent" driver.
361        - support of "time request" from the card.
362      - parse: new indentation for more readability of supported features.      - parse: new indentation for more readability of supported features.
363      - switch the GemPC Key and GemPC Twin in APDU mode since they      - switch the GemPC Key and GemPC Twin in APDU mode since they
364        support it but do not announce it in the dwFeatures.        support it but do not announce it in the dwFeatures.
# Line 141  History: Line 373  History:
373      - First public release      - First public release
374    
375    
376  Bibliographie:  References:
377  ==============  ===========
378    
379  [1] http://www.usb.org/developers/devclass_docs/ccid_classspec_1_00a.pdf  [1] http://www.usb.org/developers/devclass_docs/ccid_classspec_1_00a.pdf
380  [2] http://www.gemplus.com/products/gempc433/  [2] http://www.gemplus.com/products/gempc433/
381  [3] http://www.gemplus.com/products/gempckey/  [3] http://www.gemplus.com/products/gempckey/
382  [4] http://www.gemplus.com/products/gempctwin/  [4] http://www.gemplus.com/products/gempctwin/
383  [5] http://www.omnikey.com/en/produkt_details.php3?produkt=1&variante=47  [5] http://www.omnikey.com/index.php?id=40
384  [6] http://www.scmmicro.com/security/SCR331.html  [6] http://www.scmmicro.com/security/SCR331.html
385  [7] http://www.scmmicro.com/security/SCR335.html  [7] http://www.scmmicro.com/security/SCR335.html
386  [8] http://www.c3po.es/pcsc.htm  [8] http://www.c3po.es/ltc31.html
387    [9] http://www.scmmicro.com/security/SPR532.html
388    [10] http://www.activcard.com/products/usb_reader.html
389    [11] http://www.scmmicro.com/security/SCR331-DI.html
390    [12] http://www.silitek.com/prod/getProduct.do?xml_id=4_2&menu_id=4_2_8&cid=1_8_5
391    [13] http://www.c3po.es/ltc32.html
392    [14] http://www.c3po.es/tltc2usb.html
393    [15] http://www.scmmicro.com/security/SCR333.html
394    [16] http://www.acs.com.hk/Product_Readers.asp?productID=107&PCate=Products_PC_Linked_SmartCard_Readers
395    [17] http://www.scmmicro.com/support/pcs_product_drivers.html
396    [18] http://www.cherrycorp.com/english/advanced-line/advanced-line_smartboard_g83-6744.htm
397    [19] http://www.kobil.com/e/products/smartcard/kaan-base.php
398    [20] http://www.kobil.com/e/products/smartcard/kaan-advanced.php
399    [21] http://www.kobil.com/d/products/smartcard/kaansim3.php
400    [22] http://www.kobil.com/e/products/index.php?s=midentity
401    [23] http://www.ntt.com/jpki/SCR331DI.html
402    [24] http://www.verisign.co.uk/products-services/security-services/unified-authentication/usb-tokens/
403    [25] http://www.eutron.com/simpocket.asp
404    [26] http://www.cryptoidentity.eutron.com/eng/home.asp
405    [27] http://www.cherry.de/english/advanced-line/advanced_smartterminal_st-1044u.htm
406    [28] http://www.ntt.com/jpki/scr3310.html
407    [29] http://www.asedrive.com/product.asp?pid=1
408    [30] http://www.scmmicro.com/security/SCR3310.html
409    [31] http://scmmicro.com/security/SCR3311.html
410    [31] http://scmmicro.com/security/SCR3320.html
411    [32] http://www.smartepad.com.br/
412    [33] http://www.omnikey.com/index.php?id=121
413    [34] http://www.scmmicro.com/security/SCR3340.html
414    [35] http://www.cherry.de/deutsch/advanced-line/advanced_smart_terminal_st-2000u.htm
415    [36] http://www.omnikey.com/index.php?id=21
416    [37] http://www.omnikey.com/index.php?id=114
417    
418  $Id$  $Id$
419    

Legend:
Removed from v.423  
changed lines
  Added in v.1909

  ViewVC Help
Powered by ViewVC 1.1.5