/[pcsclite]/trunk/Drivers/ccid/README
ViewVC logotype

Contents of /trunk/Drivers/ccid/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1523 - (show annotations) (download)
Fri May 20 10:35:11 2005 UTC (8 years ago) by rousseau
File size: 15318 byte(s)
add Verisign Secure Token in the supported list
1 USB CCID IFD Handler
2 ====================
3
4 This package provides the source code for a generic USB CCID
5 (Chip/Smart Card Interface Devices) driver. See [1] for the USB CCID
6 specifications from the USB working group.
7
8
9 Authors:
10 ========
11
12 - 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:
20 =======================
21
22 (in alphabetical order)
23 - Advanced Card Systems ACR 38 [16]
24 old versions of this reader have a bug: the reader do timeout when a
25 special USB frame is sent from the reader. If the frame size if a
26 multiple of wMaxPacketSize the communication is stopped.
27 - Cherry XX33 keyboard [?]
28 - Dell keyboard SK-3106 [?]
29 - Dell smart card reader keyboard [?]
30 - Gemplus GemPC 433 SL [2]
31 - Gemplus GemPC Key [3]
32 - Gemplus GemPC Twin [4]
33 - Kobil KAAN Base [19]
34 - Kobil KAAN Advanced [20]
35 - Kobil KAAN SIM III [21]
36 - Kobil mIDentity [22]
37 - OmniKey CardMan 3121 [5]
38 - SCM Micro SCR 331 [6]
39 You shall upgrade the firmware [17] using version 5.18 or later.
40 - SCM Micro SCR 331-DI [11]
41 You shall upgrade the firmware [17] using version 6.22 or later.
42 - SCM Micro SCR 335 [7]
43 The firmware of this reader can't be upgraded so be sure to buy a
44 recent model with firmware 5.14 or later
45 - SCM Micro SCR 3310
46 - SCM Micro SPR 532 [9]
47 You shall contact Torsten Maykranz <tmaykranz@scmmicro.de> to get a
48 firmware upgrade.
49 - Verisign Secure Storage Token [24]
50 - Verisign Secure Token [?]
51
52
53 Should work but untested by me:
54 ===============================
55
56 I would like to get these readers to perform test and validation and
57 move them in the supported list above. If you are one of the
58 manufacturers, please, contact me.
59
60 - Cherry XX44 keyboard (SmartBoard G83-6744) [18]
61 - ActivCard USB reader 2.0 [10]
62 - C3PO LTC32 [13]
63 - SCM Micro SCR 331-DI NTTCom [23]
64 - SCM Micro SCR 333 [15]
65 - Silitek SK-3105 keyboard [12] or C3PO TLTC2USB [14]
66
67
68 Unsupported or partly supported CCID readers:
69 =============================================
70
71 - C3PO LTC31 [8]
72 The reader works fine with Linux kernel 2.4 but does not with Linux
73 kernel 2.6. The ioctl() syscall returns EINVAL (Invalid argument)
74 - RSA SecureID SID800 [24]
75 The USB layer is completely broken. The reader is sometimes not even
76 seen on the USB bus (same problem under Windows). Maybe newer
77 devices will work?
78
79
80 Supported operating systems:
81 ============================
82
83 - GNU/Linux (libusb 0.1.7)
84 - MacOS X/Darwin (libusb 0.1.8beta, CVS snapshot. See "Known problems")
85 to libusb)
86
87
88 Debug informations:
89 ===================
90
91 The driver uses the debug function provided by pcscd. So if pcscd sends
92 its debug to stdout (pcscd --foreground) then the CCID will also send
93 its debug to stdout. If pcscd sends its debug to syslog (by default)
94 then the CCID will also send its debug to syslog.
95
96 You can change the debug level using the Info.plist configuraion file.
97 The Info.plist is installed, by default, in
98 /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
99
100 The debug level is set in the ifdLogLevel field. It is a binary OR
101 combinaison of 4 different levels.
102 - 1: critical: important error messages
103 - 2: info: informative messages like what reader was detected
104 - 4: periodic: periodic info when pcscd test if a card is present (every
105 1/10 of a second)
106 - 8: comm: a dump of all the bytes exchanged between the host and the
107 reader
108
109 By default the debug level is set to 3 (1 + 2) and correspond to the
110 critical and info levels.
111
112 You have to restart the driver so it read the configuration file again
113 and use the new debug level value. To restart the driver you just need
114 to unplug all your CCID readers so the the driver is unloaded and then
115 replug your readers. You can also restart pcscd.
116
117
118 Known problems:
119 ===============
120
121 MacOSX libusb
122 """""""""""""
123 There is a bug in libusb that crash the libusb library when you
124 unplug a reader and replug it in another USB socket. So if you
125 unplug a reader replug it in the same USB socket.
126
127 see http://sourceforge.net/tracker/index.php?func=detail&aid=886778&group_id=1674&atid=101674
128
129
130 Licence:
131 ========
132
133 This library is free software; you can redistribute it and/or modify it
134 under the terms of the GNU Lesser General Public License as published by
135 the Free Software Foundation; either version 2.1 of the License, or (at
136 your option) any later version.
137
138 This library is distributed in the hope that it will be useful, but
139 WITHOUT ANY WARRANTY; without even the implied warranty of
140 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
141 General Public License for more details.
142
143 You should have received a copy of the GNU Lesser General Public License
144 along with this library; if not, write to the Free Software Foundation,
145 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
146
147
148 History:
149 ========
150
151 0.9.3 - 14 March 2005, Ludovic Rousseau
152 - change the licence from GNU GPL to GNU Lesser GPL (LGPL)
153 - add support for ACS ACR 38, Kobil KAAN Base, Kobil KAAN Advanced,
154 Kobil KAAN SIM III, Kobil KAAN mIDentity, SCM Micro SCR 331,
155 SCM Micro SCR 331-DI, SCM Micro SCR 335, SCM Micro SCR 3310,
156 SCM Micro SCR 532, Cherry XX44 readers
157 - improve communication speed with readers featuring "Automatic PPS
158 made by the CCID"
159 - switch the Cherry xx33 reader in ISO mode if power up in EMV mode
160 fails.
161 - add support of character level readers. Thanks to O2Micro for the
162 patch
163 - add support for the O2Micro OZ776S reader but the reader firmware
164 is still bogus
165 - check firmware version to avoid firmwares with bugs. You can still
166 use a bogus firmware by setting DRIVER_OPTION_USE_BOGUS_FIRMWARE
167 in Info.plist
168 - some minor bugs removed
169
170 0.9.2 - 15 August 2004, Ludovic Rousseau
171 - T=1 TPDU code:
172 . the work on T=1 TPDU code was possible thanks to Gemplus
173 validation team who helped me test, debug and bring the code to
174 an EMV validation level. Thanks to Jérôme, Jean-Yves, Xavier and
175 the Gemplus readers department
176 . error code was not checked correctly
177 . avoid a (nearly) infinite loop when resynch are needed.
178 . correctly initialise an internal value to allow more than one
179 reader to work
180 - multi-slots readers
181 . add support for multi-slots readers. The only one I have is a
182 SCM Micro SCR 331-DI with a contact and a contactless interface.
183 The contactless interface may or may not work for you since the
184 reader uses proprietary (undocumented) commands.
185 - GemPC Twin serial reader
186 . perform a command (get the reader firmware) to be sure a GemPC
187 Twin (serial or pcmcia) reader is connected
188 . use a dynamic timeout when reading the serial port.
189 The first timeout used when detecting the reader is 2 seconds to
190 not wait too long if no reader is connected. Later timeouts are
191 set to 1 minute to allow long time APDU.
192 - use `pkg-config libpcsclite --cflags` to locate the pcsc-lite
193 header files
194 - use `pkg-config --print-errors --atleast-version=1.2.9-beta5 libpcsclite`
195 to test the pcsc-lite version
196 - code improvements thanks to the splint tool (http://www.splint.org/)
197
198 0.9.1 - 1 July 2004, Ludovic Rousseau
199 - I forgot to define IFD_PARITY_ERROR in a .h file
200
201 0.9.0 - 1 July 2004, Ludovic Rousseau
202 - The T=1 TPDU automata from Carlos Prados' Towitoko driver is very
203 limited and do not support error management mechanisms.
204 I then used the T=1 TPDU automata from OpenCT (OpenSC project).
205 This automata is much more powerful but still lacks a lot of error
206 management code.
207 I then added all the needed code to reach the quality level
208 requested by the EMV standard.
209 - add support for new readers:
210 . Advanced Card Systems ACR 38
211 . Cherry XX33
212 . Dell keyboard SK-3106
213 . Dell smart card reader keyboard
214 . SCR 333
215 - add support of multi procotol cards (T=0 and T=1)
216 - the debug level is now dynamic and set in the Info.plist file (no
217 need to recompile the driver any more)
218 - add support for the libusb naming scheme: usb:%04x/%04x:libusb:%s
219 - INSTALL: add a "configuring the driver for the serial reader
220 (GemPC Twin)" part
221 - use `pkg-config libpcsclite --variable=usbdropdir` so you do not
222 have to use --enable-usbdropdir=DIR or --enable-ccidtwindir=DIR
223 even if pcscd does not use the default /usr/local/pcsc/drivers
224 - add support of IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
225 IOCTL_SMARTCARD_VENDOR_VERIFY_PIN in IFDHControl()
226 - read ifdDriverOptions from Info.plist to limit the use of
227 IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE (idea from Peter Williams)
228 - provide an example of use of SCardControl()
229 IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE and
230 IOCTL_SMARTCARD_VENDOR_VERIFY_PIN in example/
231 - add a --enable-pcsclite option (default to yes) so that the driver
232 can be compiled for a different framework (one needing
233 tokenparser.l like Solaris)
234 - Reset action is power off and power on, not just power on
235 - use the include files from pcsc-lite
236 - add a mechanism to allow power on at 1.8V, 3V and then 5V as
237 specified by ISO 7816. We still use 5V for now to avoid problems
238 with non ISO compliant cards
239
240 0.4.1 - 14 February 2004, Ludovic Rousseau
241 - distribute missing files readers/supported_readers.txt and
242 src/create_Info_plist.pl
243 'make install' failed because of this.
244
245 0.4.0 - 13 February 2004, Ludovic Rousseau
246 - support of T=1 with TPDU readers. A lot of the T=1 code comes from
247 Carlos Prados towitoko driver.
248 My code is GNU GPL, his code is GNU LGPL so the global driver is
249 GNU GPL
250 - PPS negotiation if the reader does not do it automatically
251 - add support for the Silitek SK-3105 keyboard. It's a USB device
252 with multiple interfaces
253 - use the create_Info_plist.pl script to generate the installed
254 Info.plist from an Info.plist template and a list of supported
255 readers. The Info.plist was too "complex" to maintain by hand
256 since it now contains 11 entries
257 - add support of IFDHCreateChannelByName to avoid wrong reader
258 enumeration. This is not complete if you have multiple _identical_
259 readers. You need to use a > 1.2.0 pcsc-lite version (not yet
260 released at that time)
261 - build but do not install the serial ccidtwin driver by default
262 since it is useless on computers without a serial port or without
263 this reader for example.
264 - read and write timeouts are not symmetric. write timout can be
265 shorter since the reader and card is not supposed to do anything
266 before receiving (write) a command
267 - do not try to find usb.h and other libusb files if
268 --disable-libusb is used. Needed if you only want to build the
269 serial driver. Thanks to Niki Waibel for the patch
270 - add a --enable-ccidtwindir argument to ./configure to specify the
271 serial GemPC Twin installation directory
272 - debug and code improvements and simplifications
273
274 0.3.2 - 4 November 2003, Ludovic Rousseau
275 - src/commands.c: correct a stupid bug that occurs with an APDU with
276 2 bytes response.
277 - Info.plist: add SPR 532 in list of supported readers
278 - parse.c: do not exit if the InterfaceClass is 0xFF (proprietary).
279 It is the case with old readers manufactured before the final
280 release of the CCID specs.
281 - move LTC31 reader from unsupported to supported reader list. It
282 was my f ault since in used odd INS byte in my test applet and odd
283 INS bytes are forbidden by ISO 7816-4 ch. 5.4.2 Instruction byte.
284 Thanks to Josep Moné s Teixidor for pointing the problem.
285 - src/commands.c: comment out the automatic GET RESPONSE part. I
286 don't think it should be in the driver. Maybe in pcscd instead?
287
288 0.3.1 - 23 September 2003, Ludovic Rouseau
289 - add --enable-multi-thread (enabled by default) for thread safe
290 support an APDU multiplexing. You will need pcsc-lite-1.2.0-rc3 or
291 above to use this feature.
292 - add --enable-libusb=PATH option is your libusb is not installed in
293 /usr or /usr/local
294 - honor DESTDIR in install rules (closes [ #300110 ]). Thanks to
295 Ville Skyttä for the patch.
296 - src/ccid.c: do not switch the GemPC Key and GemPC Twin in APDU
297 mode since it also swicth in EMV mode and may not work with non
298 EMV cards
299 - src/ccid_serial.c: complete reimplementation of the Twin serial
300 protocol using a finite state automata (code much simpler)
301
302 0.3.0 - 10 September 2003, Ludovic Rousseau
303 - support of GemPC Twin connected to a serial port. Thanks to Niki
304 W. Waibel for a working prototype.
305 - support of auto voltage at power up if the reader support it
306 instead of forcing a 5V in all cases.
307 - support of APDU mode instead of just TPDU if the reader support
308 it. Thanks to Jean-Luc Giraud for the idea and inspiration I got
309 from his "concurrent" driver.
310 - support of "time request" from the card.
311 - parse: new indentation for more readability of supported features.
312 - switch the GemPC Key and GemPC Twin in APDU mode since they
313 support it but do not announce it in the dwFeatures.
314 - new build process using autoconf/automake.
315
316 0.2.0 - 26 August 2003, Ludovic Rousseau
317 - Works under MacOS X
318 - Info.plist: use an <array></array> for the alias enumeration
319 - Makefile rework for *BSD and MacOS X
320
321 0.1.0 - 13 August 2003, Ludovic Rousseau
322 - First public release
323
324
325 Bibliography:
326 =============
327
328 [1] http://www.usb.org/developers/devclass_docs/ccid_classspec_1_00a.pdf
329 [2] http://www.gemplus.com/products/gempc433/
330 [3] http://www.gemplus.com/products/gempckey/
331 [4] http://www.gemplus.com/products/gempctwin/
332 [5] http://www.omnikey.com/en/produkt_details.php3?produkt=1&variante=47
333 [6] http://www.scmmicro.com/security/SCR331.html
334 [7] http://www.scmmicro.com/security/SCR335.html
335 [8] http://www.c3po.es/ltc31.html
336 [9] http://www.scmmicro.com/security/SPR532.html
337 [10] http://www.activcard.com/products/usb_reader.html
338 [11] http://www.scmmicro.com/security/SCR331-DI.html
339 [12] http://www.silitek.com/prod/getProduct.do?xml_id=4_2&menu_id=4_2_8&cid=1_8_5
340 [13] http://www.c3po.es/ltc32.html
341 [14] http://www.c3po.es/tltc2usb.html
342 [15] http://www.scmmicro.com/security/SCR333.html
343 [16] http://www.acs.com.hk/Product_Readers.asp?productID=59&PCate=Products_PC_Linked_SmartCard_Readers
344 [17] http://www.scmmicro.com/support/pcs_product_drivers.html
345 [18] http://www.cherrycorp.com/english/advanced-line/advanced-line_smartboard_g83-6744.htm
346 [19] http://www.kobil.com/e/products/smartcard/kaan-base.php
347 [20] http://www.kobil.com/e/products/smartcard/kaan-advanced.php
348 [21] http://www.kobil.com/d/products/smartcard/kaansim3.php
349 [22] http://www.kobil.com/e/products/index.php?s=midentity
350 [23] http://www.ntt.com/jpki/SCR331DI.html
351 [24] http://www.verisign.co.uk/products-services/security-services/unified-authentication/usb-tokens/
352
353 $Id$
354
355 vim:ts=20

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5