OpenSC fork, with some Italian healthcare smart card utils
Go to file
Doug Engert 1fe1d40e38 PIV - Improved error handling of get_challenge
Random data from PIV card is obtained using GENERAL AUTHENTICATE command
for a request of a Challenge from the card. "00 87 00 9B 04 7C 02 81 00"
Usually 8 bytes are returned.

NIST 800-73-3_PART2, "A.1 Authentication of the PIV Card Application Administrator"
"Table 11. Authentication of PIV Card Application Administrator" shows an example of
how to do this.

Some cards (one I have: 3b:7d:96:00:00:80:31:80:65:b0:83:11:17:d6:83:00:90:00)
will not allow 2 of these commands in a row. (Maybe assuming command is only
used as in Table 11 and is expecting the second command.)

Code was added to card-piv.c so if "6A 80" is returned, try the command one more time.
For any other GENERAL AUTHENTICATE failure, SC_ERROR_NOT_SUPPORTED is returned.
piv_get_challenge may be called within a loop from sc_get_challenge if more random
data is needed thus causing the the 2 commands to sent in a row.

On branch piv-improved-matching
 Changes to be committed:
	modified:   card-piv.c
2018-12-27 14:25:45 +01:00
.github speed up checking out nightly branch 2018-11-20 13:02:29 +01:00
MacOSX allow specifying the size of OpenSSL secure memory 2018-11-13 15:50:17 +01:00
doc tools: harmonize card initialization 2018-12-18 14:50:45 +01:00
etc pkcs11: CKF_WRITE_PROTECTED based on card's read_only flag 2018-09-14 08:23:08 +02:00
m4 opensc-notify: notify for card events 2017-08-02 19:04:09 +02:00
packaging/debian.templates fix LGPL version 2013-09-29 20:55:41 +02:00
src PIV - Improved error handling of get_challenge 2018-12-27 14:25:45 +01:00
tests Add simple Sanity test for pkcs11-tool sign&verify operations 2018-12-06 09:27:50 +01:00
win32 pgp: detect gnuk with newer fw 2018-09-13 13:46:27 +02:00
.gitignore Distribute a minimal opensc.conf 2018-07-17 14:49:27 +02:00
.travis.yml travis: fixed installation of completion templates 2018-11-14 12:57:22 +01:00
COPYING - changed license to LGPL 2001-11-06 18:34:19 +00:00
Makefile.am Move the test into separate directory 2018-12-06 09:27:50 +01:00
Makefile.mak fixed and cleaned up nmake Makefiles 2016-06-23 07:35:53 +02:00
NEWS updated NEWS 2018-09-13 13:47:21 +02:00
README link README to README.md 2015-11-02 23:54:36 +01:00
README.md Add a badge about card status 2018-06-21 12:48:57 +02:00
appveyor.yml allow specifying the size of OpenSSL secure memory 2018-11-13 15:50:17 +01: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 Move the test into separate directory 2018-12-06 09:27:50 +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

Build and test status of specific cards:

Cards Status
CAC CAC
Coolkey Coolkey