Skip to content

Instantly share code, notes, and snippets.

@jsribeiro
Created December 21, 2017 17:54
Show Gist options
  • Save jsribeiro/e7b5af3110c45c66b08a97bc55854088 to your computer and use it in GitHub Desktop.
Save jsribeiro/e7b5af3110c45c66b08a97bc55854088 to your computer and use it in GitHub Desktop.
[test@test0 ~]$ pcsc_scan
PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.8
Using reader plug'n play mechanism
Scanning present readers...
0: Gemalto USB SmartCard Reader 0
Thu Dec 21 17:49:35 2017
Reader 0: Gemalto USB SmartCard Reader 0
Card state: Card inserted,
ATR: 3B 95 18 40 FF 62 01 02 01 04
ATR: 3B 95 18 40 FF 62 01 02 01 04
+ TS = 3B --> Direct Convention
+ T0 = 95, Y(1): 1001, K: 5 (historical bytes)
TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU
129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s
TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
-----
TC(2) = FF --> Work waiting time: 960 x 255 x (Fi/F)
+ Historical bytes: 62 01 02 01 04
Category indicator byte: 62 (proprietary format)
Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 95 18 40 FF 62 01 02 01 04
Schlumberger Cryptoflex 32K e-gate
[test@test0 ~]$ pcsc_scan
PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.8
Using reader plug'n play mechanism
Scanning present readers...
0: Gemalto USB SmartCard Reader 0
Thu Dec 21 17:53:31 2017
Reader 0: Gemalto USB SmartCard Reader 0
Card state: Card inserted,
ATR: 3B 7D 95 00 00 80 31 80 65 B0 83 11 00 C8 83 00 90 00
ATR: 3B 7D 95 00 00 80 31 80 65 B0 83 11 00 C8 83 00 90 00
+ TS = 3B --> Direct Convention
+ T0 = 7D, Y(1): 0111, K: 13 (historical bytes)
TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU
125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s
TB(1) = 00 --> VPP is not electrically connected
TC(1) = 00 --> Extra guard time: 0
+ Historical bytes: 80 31 80 65 B0 83 11 00 C8 83 00 90 00
Category indicator byte: 80 (compact TLV data object)
Tag: 3, len: 1 (card service data byte)
Card service data byte: 80
- Application selection: by full DF name
- EF.DIR and EF.ATR access services: by GET RECORD(s) command
- Card with MF
Tag: 6, len: 5 (pre-issuing data)
Data: B0 83 11 00 C8
Tag: 8, len: 3 (status indicator)
LCS (life card cycle): 00 (No information given)
SW: 9000 (Normal processing.)
Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 7D 95 00 00 80 31 80 65 B0 83 11 00 C8 83 00 90 00
3B 7D 95 00 00 80 31 80 65 B0 83 11 .. .. 83 00 90 00
Portuguese ID Card (eID)
http://www.cartaodecidadao.pt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment