Wednesday, June 20, 2018

PySCard 1.9.7 released

I just released a new official version 1.9.7 of pyscard. PySCard is a python module adding smart cards support (PC/SC) to Python.

The PySCard project is available at:

Changes

1.9.7 (June 2018)


  • Modify CardMonitoring's deleteObserver method to cleanly remove threads
  • Python 3: fix smartcard/Synchronization.py
  • Python 3: Fix SCardGetErrorMessage() on Windows
  • PCSCPart10: add parseFeatureRequest(), parseTlvProperties()
  • Fix PEP8 warnings
  • Minor documentation improvements

1.9.6 (August 2017)


  • include test/__init__.py in the archive tarball.
    "make test" now works. That fixes build using Python 3.6

Sunday, May 13, 2018

ATR statistics: TB3 - Global after T=15 in TDi–1

Article from the series "ATR statistics".

TB3 - Global after T=15 in TDi–1


For T=1 protocol the first TBi encodes Block Waiting Integer and Character Waiting Integer. The high nibble encodes BWI. The low nibble encodes CWI.

For T=15 protocol TBi the coding is defined in the document ETSI TS 102 221 V10.0.0 (2011-12) chapter "6.3.3 Global Interface byte"

TB3#%
156575.53 %
0x4528813.90 %
0x55381.83 %
0x47231.11 %
0x5D211.01 %
0x43180.87 %
0x40170.82 %
0x75140.68 %
0x65110.53 %
0x4290.43 %
0x5890.43 %
0x7D80.39 %
0x4D70.34 %
0x9F70.34 %
0xA050.24 %
0x3540.19 %
0x1530.14 %
0x3430.14 %
0x5730.14 %
0x3720.10 %
0x4420.10 %
0x4920.10 %
0x5220.10 %
0x6720.10 %
0x2410.05 %
0x4110.05 %
0x5310.05 %
0x5910.05 %
0x6310.05 %
0x6910.05 %
0x6D10.05 %
0x7310.05 %
0x9E10.05 %

T=1 protocol

The list above is not really informative since both BWI and CWI are coded in the same byte.

BWI


BWI#%
434973,01 %
57315,27 %
7224,60 %
6163,35 %
391,88 %
961,26 %
120,42 %
210,21 %


CWI


CWI#%
5 343 72 %
1336 8 %
7 30 6 %
3 18 4 %
0 15 3 %
2 10 2 %
8 9 2 %
4 6 1 %
155 1 %
9 4 1 %
1 1 0 %
141 0 %


T=15 protocol

I my list I have only 5 cards with a TB3 for T=15. They all have the value TB3 = 0xA0 for "UICC-CLF interface supported as defined in TS 102 613".

Sunday, April 15, 2018

New version of pcsc-tools: 1.5.3

I just released a new version of pcsc-tools, a suite of tools for PC/SC.

The main changes are for the pcsc_scan command.

Changes:
1.5.3 - 15 April 2018, Ludovic ROUSSEAU
  • 253 new ATRs
  • pcsc_scan (thanks to Pascal J. Bourguignon):
    • add -v argument (default) for verbose
    • add -q argument for quiet
    • add -r argument to display the reader list
    • allow to use Control-C to break execution

Thursday, April 12, 2018

New PyKCS11 1.5.2 available

I just released a new version of PyKCS11, a Python wrapper above the PKCS#11 API.
See "PyKCS11 introduction".

Changes:

1.5.2 - April 2018, Ludovic Rousseau
  • Fix initPin()
  • add tests for initPin(), setPin(), initToken()

Friday, March 30, 2018

New PyKCS11 1.5.1 available

I just released a new version of PyKCS11, a Python wrapper above the PKCS#11 API.
See "PyKCS11 introduction".

Changes:

1.5.1 - March 2018, Ludovic Rousseau
  • Fix "pip install"

Monday, March 26, 2018

New PyKCS11 1.5.0 available

I just released a new version of PyKCS11, a Python wrapper above the PKCS#11 API.
See "PyKCS11 introduction".

Changes:

1.5.0 - March 2018, Ludovic Rousseau
  • Python 3: use strings instead of binary buffers for CK_UTF8CHAR PKCS#11 types. The behaviour is now the same as with Python 2
  • allow non string PIN values (binary PIN) for login(), initToken(), initPin(), setPin()
  • fix support of RSA PKCS PSS mechanism
    The mechanism object now uses a parameter "mechanism" instead of hard coding the mechanism value to CKM_RSA_PKCS_PSS.
  • add support of Python 2.7 on Windows
  • add AppVeyor configuration (automatic Windows builds)
  • ckbytelist: remove possibility to give a initial size
  • samples/getinfo: do not list the mechanisms by default
  • samples/events:
    • do not list the mechanisms by default
    • add support of pinpad readers
  • some minor improvements

Windows

If you are a Windows user and you want binary packages then please work on the AppVeyor configuration:

Sunday, March 18, 2018

MUSCLE web sites moved to .apdu.fr

With the decommissioning of alioth.debian.org I had to move the web site to a new place.


Update your bookmarks.

I also upgraded the HTML pages to Boostrap 4.0.

Please report any issue you may find.