OpenSC fork, with some Italian healthcare smart card utils
Go to file
Vincent JARDIN c581d1b26f IASECC/CPX: opensc-explorer asn1 of EF.ATR objects
Workaround the parsing of EF.ATR objects, for instance:

./opensc-explorer -r 0

OpenSC [3F00]> cat 2F01
00000000: 80 43 01 B8 46 04 04 B0 EC C1 47 03 94 01 80 4F .C..F.....G....O
00000010: 08 80 25 00 00 01 FF 01 00 E0 10 02 02 01 04 02 ..%.............
00000020: 02 01 04 02 02 01 00 02 02 01 00 78 08 06 06 2B ...........x...+
00000030: 81 22 F8 78 02 82 02 90 00                      .".x.....

OpenSC [3F00]> info 2F01
Working Elementary File  ID 2F01, SFI E8

File path:               3F00/2F01
File size:               57 bytes
EF structure:            Transparent
ACL for READ:            NONE
ACL for UPDATE:          SecOx45
ACL for DELETE:          SecOx45
ACL for WRITE:           N/A
ACL for REHABILITATE:    N/A
ACL for INVALIDATE:      N/A
ACL for LIST FILES:      N/A
ACL for CRYPTO:          N/A
Type attributes:         01
Life cycle:              Operational, activated

In order to avoid adding an offset of 1 for such objects on some
  OpenSC [3F00]> asn1 2F01 1
specific cards, then, we get:

OpenSC [3F00]> asn1 2F01
80 Context 0  (0 bytes)
43 Application 3  (1 byte): decode error: B8 .
46 Application 6  (4 bytes): decode error: 04 B0 EC C1 ....
47 Application 7  (3 bytes): 94 01 80 ...
4F Application 15 (8 bytes): 80 25 00 00 01 FF 01 00 .%......
E0 Private 0  (16 bytes)
   02 INTEGER (2 bytes): 260
   02 INTEGER (2 bytes): 260
   02 INTEGER (2 bytes): 256
   02 INTEGER (2 bytes): 256
78 Application 24 (8 bytes)
   06 OBJECT IDENTIFIER (6 bytes):  1.3.162.15480.2
82 Context 2  (2 bytes): 36864: 90 00 ..
OpenSC [3F00]>

which means:
 ef-atr.c:49:sc_parse_ef_atr_content: EF.ATR: card service 0xB8
 ef-atr.c:59:sc_parse_ef_atr_content: EF.ATR: Pre-Issuing data '04B0ECC1'
 ef-atr.c:67:sc_parse_ef_atr_content: EF.ATR: DF selection 94, unit_size 1, card caps 80
 ef-atr.c:95:sc_parse_ef_atr_content: EF.ATR: AID '8025000001FF0100'
 ef-atr.c:106:sc_parse_ef_atr_content: EF.ATR: Issuer data '02020104020201040202010002020100'
 ef-atr.c:111:sc_parse_ef_atr_content: EF.ATR: DER encoded OID 06062B8122F87802
 ef-atr.c:114:sc_parse_ef_atr_content: EF.ATR: OID 2B8122F87802
 ef-atr.c:123:sc_parse_ef_atr_content: EF.ATR: status word 0x9000

Fix: issue #2220
2021-03-17 10:58:20 +01:00
.github Nightly: in case of conflicts, add "our" changes on top 2021-03-16 11:49:02 +01:00
MacOSX macos: add a tokend postfix for dmg 2021-03-16 11:49:02 +01:00
doc Pkcs11-tool changes to test a modules ability to use threads 2021-01-26 12:50:39 +01:00
etc spelling fixes 2020-08-30 10:35:14 +02:00
m4 configure: Add option to generate code coverage (for unit tests) 2020-01-07 17:07:48 +01:00
packaging/debian.templates fix LGPL version 2013-09-29 20:55:41 +02:00
src IASECC/CPX: opensc-explorer asn1 of EF.ATR objects 2021-03-17 10:58:20 +01:00
tests Use more portable switch for uniq to unbreak osx build 2021-03-15 09:33:55 +01:00
win32 fixed atrmask for gnuk 2020-11-25 09:28:00 +01:00
.gitignore Ignore build artifacts 2021-01-11 14:49:22 +01:00
.gitlab-ci.yml Integrated virt_CACard in CI jobs (#1757) 2019-08-20 15:17:14 +02:00
.travis.yml macos: add a tokend postfix for dmg 2021-03-16 11:49:02 +01:00
COPYING Import new license file with correct address 2020-01-09 15:35:11 +01:00
Makefile.am configure: Add option to generate code coverage (for unit tests) 2020-01-07 17:07:48 +01:00
Makefile.mak autostart is a subfeature of OpenSC tools 2019-04-08 11:16:13 +02:00
NEWS update date in NEWS 2020-11-24 10:12:21 +01:00
README link README to README.md 2015-11-02 23:54:36 +01:00
README.md Fix link to virt_cacard project 2020-08-05 09:11:35 +02:00
SECURITY.md SECURITY.md: Introduce security reporting process 2020-07-03 17:32:50 +02:00
appveyor.yml Prepare RC1 of 0.21.0 (#2117) 2020-10-03 01:11:33 +02:00
bootstrap build: bootstrap script has expected content 2014-05-11 09:15:27 +02:00
bootstrap.ci bootstrap.ci: stop echoing executed commands 2018-05-21 20:45:04 +02:00
configure.ac configure: Warn about strict alliasing issues in strict builds 2021-03-09 23:59:58 +01:00
version.m4 version.m4: remove unused macro PACKAGE_VERSION_REVISION 2018-05-21 20:45:04 +02:00

README.md

OpenSC documentation

Wiki is available online

Please take a look at the documentation before trying to use OpenSC.

Travis CI Build Status AppVeyor CI Build Status Coverity Scan Status Language grade: C/C++ Fuzzing Status CII Best Practices

Build and test status of specific cards:

Cards Status
CAC CAC
virt_CACard virt_CACard
Coolkey Coolkey
PivApplet PIV
OpenPGP Applet OpenPGP
GidsApplet GIDS
IsoApplet IsoApplet
OsEID (MyEID) OsEID (MyEID)