Important!

Blog moved to https://blog.apdu.fr/

I moved my blog from https://ludovicrousseau.blogspot.com/ to https://blog.apdu.fr/ . Why? I wanted to move away from Blogger (owne...

Friday, January 31, 2020

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

Article from the series "ATR statistics".

TB4 - Global after T=15 in TDi–1

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".

Table 6.7: Coding of the first TBi (i > 2) after T = 15 of the ATR

b8b7b6b5b4b3b2b1Meaning
00000000No additional global interface parameters supported
1--1----Low Impedance drivers and protocol available on the I/O line available (see clause 7.2.1)
11------Inter-Chip USB UICC-Terminal interface supported as defined in TS 102 60
1-1-----UICC-CLF interface supported as defined in TS 102 613
1---1---Secure Channel supported as defined in TS 102 484
1---11--Secured APDU - Platform to Platform required as defined in TS 102 484
NOTE: Any other value is RFU.

TB4#%
207099.90 %
0x8320.10 %


Only 2 cards have a TB4 in the ATR. They are:
The 2 cards use the same value for TB4: 0x83 that is RFU.

GitHub Sponsors

GitHub Sponsors

GitHub now proposes a way to fund the Free Software projects you use. From their presentation page:
A new way to contribute on GitHub
Funding developers and organizations through GitHub Sponsors is one more way to contribute to open source projects you appreciate. Help projects get the resources they need, and recognize contributors working behind the scenes to make open source better for everyone.
With Sponsors, any GitHub user can sponsor any open source developer or organization in the program.
I am now part of the Sponsors project. You can sponsor my Free Software projects on github.
You will find a Sponsor button in each project page. For example:
https://github.com/LudovicRousseau/CCID

I am really new to this program so I have no idea how it will work for me and my Free Software projects.
I configured two options: 1 $ per month and 10 $ per month. Maybe I should configure more options. Just tell me.
https://github.com/sponsors/LudovicRousseau

Other funding systems

I already tried other ways to receive some money.

Flattr

In 2010 I tried Flattr. See "How to help my projects?" but, as I explained in "My Flattr experience" 4 years later, all the money went to Flattr itself as "tax".
It was not a positive experience.

Bitcoin

In 2014 I created a bitcoin account. See "How to help my projects? Send me bitcoins!". After 2 years (in 2016) I made a status in "Bitcoins received for this blog: 2 years later".

Since the bitcoin blockchain is public you can see all the transactions I received so far. In 5 years I received 0.12837149 BTC (around 1000 €) for a total of 10 donations.
That is ~200 € per year or ~15 € per month. That is enough to pay for the VPS I use to host the apdu.fr services.

Maybe I should make more advertising about the possibility to send me bitcoin.

Conclusion

I have no idea how the GitHub (owned by Microsoft) Sponsors program will evolve. I propose to make a status in 2 or 3 years to see how it goes.

Update: 1 Feb 2020

You can access my Sponsor page at https://github.com/sponsors/LudovicRousseau.

I added new options 2$, 4$ and 8$ per month in addition to the 1$ and 10$ per month to give you more flexibility. Maybe I should have used a Fibonacci suite instead? 🙂

Monday, January 6, 2020

New generator for the CCID readers pages

Since Python 2.x is no more maintained from 1st January 2020 I had to move the script to generate some CCID pages to Python 3.

These pages are the famous ones available from https://ccid.apdu.fr/#readers:

Technology update

The previous Python script used templayer. templayer is no more maintained since 2009 and only works with Python 2.
I now use Jinja2.

Request for comments

If you see a problem or want to propose a change to these web pages just email me or the pcsclite-muscle mailing list. It is the good time to make suggestions.
It can be about the information provided on the pages or the graphical design of the pages (you may have noted that I am not a website designer).

Saturday, January 4, 2020

New version of pcsc-tools: 1.5.5

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

Changes:

1.5.5 - 4 January 2020, Ludovic ROUSSEAU
  • 353 new ATRs
  • scriptor: add -u option to make stdout unbuffered

Friday, January 3, 2020

New version of pcsc-lite: 1.8.26

I just released a new version of pcsc-lite 1.8.26.
pcsc-lite is a Free Software implementation of the PC/SC (or WinSCard) API for Unix systems.

Changes

1.8.26: Ludovic Rousseau
3 January 2020
  • Use poll() instead of select() to allow file descriptor higher than FD_SETSIZE
  • Enable reader filtering by default
  • pcsc-spy:
    • Do not read output buffer after error
    • Adjust code to handle autoallocated buffers
    • fix year-2038 issue by using long instead of int
  • Android: fix compilation
  • if client/server protocol mismatch:
    • log an explicit message
    • SCardEstablishContext() returns SCARD_E_SERVICE_STOPPED
  • polkit: log the error message if polkit_authority_get_sync() fails
  • Exit with EXIT_SUCCESS on shutdown to please systemd
  • Doxygen: fix minor issues in the documentation
  • Add --disable-documentation option
  • Fix a minor memory leak

Motivation

The major change is the use of reader filtering by default. No need to rebuild pcsc-lite using --enable-filter any more.
The feature was introduced in 2015 and is documented at "Remove and/or customize PC/SC reader names".

This feature is requested in packages by some users.

To avoid that each GNU/Linux distribution changes the packaging configuration to enable the feature I decided to enable the feature by default in the upstream project.

This change should not have any bad side effect. Only root can modify the configuration file /etc/default/pcscd or the systemd file /etc/systemd/system/pcscd.service.d/override.conf.

For systemd use: sudo systemctl edit pcscd to add something like:
[Service]
Environment=PCSCLITE_FILTER_IGNORE_READER_NAMES=Nitrokey

You can get the previous behaviour by using
./configure --disable-filter

Wednesday, January 1, 2020

MUSCLE mailing list statistics for 2019

As I did in 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 and 2018 I propose some statistics of the MUSCLE mailing list usage.


Evolution

YearTotal number of messages Progression
2009603
2010718+19 %
2011999+39 %
2012207-79 %
2013198-4 %
2014194-2 %
2014194-2 %
2015120-38 %
2016125+4 %
2017128+2 %
201866-51 %
201929-56 %

Comments

Again a high decrease in number of messages.
I note that I receive many messages directly by email instead of from the mailing list.

My interpretation is (same as one year ago) that the development of pcsc-lite and related software is now complete. Only rare bugs are reported.
Now users are asking for support or help and the easiest way to contact me is using one of my emails.

Statistics from 3.1.2019 to 24.11.2019
for pcsclite-muscle@lists.infradead.org



People who have written most messages:


 Author  Msg  Percent
1ludovic.rousseau@gmail.com1655.17 %
2wrosenauer@gmail.com310.34 %
3brice.gagnage@renault.com26.90 %
4ertan@cronosmedikal.com26.90 %
5frankmorgner@gmail.com13.45 %
6=?iso-8859-1?Q?Ralph_Pr=FCtting_=40_Active_Key_GmbH_=26_Co=2E_KG?=13.45 %
700cpxxx@gmail.com13.45 %
8godfreyhkchung@gmail.com13.45 %
9pnickerson@cashstar.com13.45 %
10gsvelto@mozilla.com13.45 %
other00.00 %

Best authors, by total size of their messages (w/o quoting):


 Author  KBytes
1ludovic.rousseau@gmail.com1296.4
2=?iso-8859-1?Q?Ralph_Pr=FCtting_=40_Active_Key_GmbH_=26_Co=2E_KG?=49.3
3frankmorgner@gmail.com34.0
4ertan@cronosmedikal.com12.3
5brice.gagnage@renault.com11.1
6gsvelto@mozilla.com9.5
7pnickerson@cashstar.com8.1
800cpxxx@gmail.com8.0
9wrosenauer@gmail.com7.5
10godfreyhkchung@gmail.com2.6

Best authors, by average size of their message (w/o quoting):


 Author  bytes
1ludovic.rousseau@gmail.com82971
2=?iso-8859-1?Q?Ralph_Pr=FCtting_=40_Active_Key_GmbH_=26_Co=2E_KG?=50467
3frankmorgner@gmail.com34825
4gsvelto@mozilla.com9716
5pnickerson@cashstar.com8266
600cpxxx@gmail.com8219
7ertan@cronosmedikal.com6300
8brice.gagnage@renault.com5673
9godfreyhkchung@gmail.com2658
10wrosenauer@gmail.com2574

Table showing the most successful subjects:


 Subject  Msg  Percent
1[Pcsclite-muscle] Interaction pcsc-lite and Yubikey413.79 %
2[Pcsclite-muscle] Bug fix for ccid-1.4.31310.34 %
3[Pcsclite-muscle] pcscd errors break https for chromium-based browsers26.90 %
4[Pcsclite-muscle] Stuck in a CCID_Receive Overrun error loop26.90 %
5[Pcsclite-muscle] Yubico YubiKey 5: RFInitializeReader() Open Port13.45 %
6[Pcsclite-muscle] Yubico YubiKey 5: RFInitializeReader() Open13.45 %
7[Pcsclite-muscle] Multiple command processing and card recognition13.45 %
8[Pcsclite-muscle] Very low cost PCSC card reader13.45 %
9[Pcsclite-muscle] Multiple command processing and card13.45 %
10New version of pcsc-lite: 1.8.2513.45 %
11[Pcsclite-muscle] What happened to the PC/SC workgroup (and site)?13.45 %
12[Pcsclite-muscle] CCID driver release13.45 %
13[Pcsclite-muscle] pcscd unable to handle second interface on ACS ACR1281U-C113.45 %
14[Muscle] Is there a way to know if a reader is contactless?13.45 %
15[Pcsclite-muscle] [Muscle] Is there a way to know if a reader is contactless?13.45 %
16[Pcsclite-muscle] acsccid 1.1.7 Released13.45 %
17New version of libccid: 1.4.3113.45 %
18[Pcsclite-muscle] Raise SCardTransmit timeout13.45 %
19[Pcsclite-muscle] looking for fast ISO7816-3 card (clock and baud rates)13.45 %
20[PATCH] Use poll() instead of select()13.45 %
21[Pcsclite-muscle] select()-induced crashes (and attached13.45 %
22[Pcsclite-muscle] NFC13.45 %
other00.00 %

Most used email clients:


 Mailer  Msg  Percent
1(unknown)2689.66 %
2Microsoft Outlook 16.026.90 %
3Mozilla/5.x13.45 %
other00.00 %

Table of maximal quoting:


 Author  Percent
1wrosenauer@gmail.com39.19 %
2godfreyhkchung@gmail.com16.23 %
3ertan@cronosmedikal.com9.90 %
400cpxxx@gmail.com3.77 %
5ludovic.rousseau@gmail.com2.78 %
6brice.gagnage@renault.com0.87 %
7frankmorgner@gmail.com0.00 %
8=?iso-8859-1?Q?Ralph_Pr=FCtting_=40_Active_Key_GmbH_=26_Co=2E_KG?=0.00 %
9pnickerson@cashstar.com0.00 %
10gsvelto@mozilla.com0.00 %
average2.99 %

Maximal quoting:


Author : wrosenauer@gmail.com
Subject : [Pcsclite-muscle] Interaction pcsc-lite and Yubikey

Date : Thu, 31 Jan 2019 11:49:26 +0100

Quote ratio: 78.91% / 4505 bytes

Longest message:


Author : ludovic.rousseau@gmail.com
Subject : [Pcsclite-muscle] pcscd errors break https for chromium-based browsers
Date : Tue, 26 Feb 2019 20:28:50 +0200
Size : 363885 bytes

Most successful subject:


Subject : [Pcsclite-muscle] Interaction pcsc-lite and Yubikey
No. of msgs: 4
Total size : 19290 bytes

Final summary:


Total number of messages: 29
Total number of different authors: 10
Total number of different subjects: 22
Total size of messages (w/o headers): 1518712 bytes
Average size of a message: 52369 bytes



Input file last updated: Wed Jan 1 16:53:58 2020Generated by MailListStat v1.3

Happy new year 2020

Dear readers,

I wish you a happy new year for 2020.

In 2019 I published 25 articles on this blog (24 in 2018, 34 in 2017 and 49 in 2016 and 51 in 2015). It is stable compared to 2018.

Audience

The number of readers in 2019 is also stable compared to 2018.

A large part of readers came from the USA. This year Germany is second followed by France.

Most read articles

Title#%
PCSC sample in C15.15 %=
Blog homepage24.80 %=
PC/SC sample in different languages34.62 %=
Smart card integration in macOS Sierra: CryptoTokenKit plugin43.42 %new
PCSC sample in C# 53.02 %-1
PCSC sample in Python 62,81 %-1
pcscd auto start using systemd 72.80 %=
PCSC sample in Java 82,19 %-2
Linux NFC driver conflicts with CCID driver for ACS ACR122U 92.12 %+1
PCSC sample in JavaScript (Node.js) 101.92 %-1

PC/SC sample articles are always successful. I wrote them in 2010.

The first article from those I wrote in 2019 is at position 20 and is "macOS Catalina and smart cards status".

If I use the results for the previous month (Dec 2019) I find a different picture:
We still have the old PC/SC samples (in C, Python, Java and C#) but also 4 articles about smart card and macOS.
I am happy to see my blog is useful to macOS users, developers, etc.

Thank you

Thank you to you, readers.

This blog has no advertising. If you want to support me you can send me some bitcoins. If you want to send $ or € instead of bitcoins then contact me.