Trevor Bentley
f6b817f056
Add ykpiv_attest() and use it in yubico-piv-tool
2017-10-23 16:25:38 +02:00
Trevor Bentley
8135a55200
yubico-piv-tool: Switch to ykpiv_set_pin_retries()
2017-10-23 16:25:17 +02:00
Trevor Bentley
48c2b8e99c
Move shared functionality from util.c to internal.h
2017-10-23 16:22:34 +02:00
Trevor Bentley
dfd2a9ef92
Cleanup compiler warnings, and switch to cross-platform data types
2017-10-23 16:22:31 +02:00
Trevor Bentley
97ecb75dd4
Cleanup function names. Make PIN cache optional.
2017-10-23 16:22:27 +02:00
Trevor Bentley
a8b2c2c1c4
Fix DES bugs in Linux. Windows+Linux both pass unit tests.
2017-10-23 16:22:24 +02:00
Trevor Bentley
fb00baf672
Backport from minidriver:
...
commit 90020fea0ac34b2f98b68a5798fa85cb5ad12175 (tag: 3.2)
Author: Dave Pate <dpate@yubico.com >
Date: Thu Jul 27 00:31:54 2017 -0700
Release 3.2
Adds automatic PUK blocking
Adds feature to turn automatic PUK blocking off
Miscellaneous fixes with metadata handling
2017-10-23 16:22:21 +02:00
Trevor Bentley
16d0a519c4
Continuing unit tests and minor bug fixes
...
* Support unit tests on Yubikey NEO
* Test ykpiv_get_version
* Test ykpiv_import_private_key
* Test ykpiv_sign_data
* Test ykpiv_decipher_data
* Test ykpiv_change_pin
* Test ykpiv_change_puk
* Test ykpiv_get_pin_retries
* Test ykpiv_set_pin_retries
* Test ykpiv_verify
* Fix segfault when |tries| is NULL
* Fix segfault when import_private_key algorithm is wrong
2017-10-23 16:22:14 +02:00
Trevor Bentley
2ea0e4cbdd
Port custom allocator from minidriver, and add test case for it.
2017-10-23 16:22:08 +02:00
Trevor Bentley
6c5d5545bf
WIP port minidriver ykpiv_util_* functions
2017-10-23 16:21:57 +02:00
Trevor Bentley
86a0e72dbe
Port fix from ykpiv-minidriver:
...
commit 79ae87153c2be06e8193a491e26b799e3b5ba028
Author: Oscar K So JR <oscar@yubico.com >
Date: Mon Jan 30 22:08:29 2017 +0000
Fixed Issue #78 - P2 Bug: MXCT352 - Importing PKCS#12 with key size 4096 bits crashed CertUtil.exe
2017-10-23 16:21:54 +02:00
Klas Lindfors
82cd15db50
change _change_pin_internal to change_pin_internal to match style
...
all other internal functions have plain names
2017-05-30 13:05:24 +02:00
Klas Lindfors
0db87e8721
drop unused variable
2017-05-30 13:05:00 +02:00
emersonl
d1db8eb282
Improve the style based on comments from Klas
2017-05-30 13:02:49 +02:00
emersonl
6882bc5c7c
Fix issue #116
2017-05-30 12:59:08 +02:00
emersonl
c05d879968
Fix issue #88 and #102
2017-05-30 12:56:25 +02:00
Simon Josefsson
89bec1260a
Improve license headers.
2016-08-12 15:30:06 +02:00
Michael Scherer
24534bcfcf
Replace magic number for status word by constants
...
Most come from NIST special publication 800-73-4, section 5.6,
except one which I assume to be a custom one for yubikey.
2016-05-09 09:38:37 +02:00
Klas Lindfors
bbde9f91f9
Merge branch 'fix_typo' of ssh://github.com/mscherer/yubico-piv-tool into mscherer-fix_typo
2016-05-09 09:01:28 +02:00
Michael Scherer
6a4608ff05
Use more constant for filling apdu struct.
2016-05-05 01:11:42 +02:00
Michael Scherer
099c55e90a
Fix various errors messages
2016-05-05 01:11:37 +02:00
Klas Lindfors
ebf31d73f8
Merge branch 'attestation2'
2016-05-03 09:24:14 +02:00
Klas Lindfors
60dbac235d
unblock pin should unblock pin, not change puk
2016-04-18 21:43:34 +02:00
Klas Lindfors
f5fab7e962
add ykpiv touchpolicy to ykpiv
2016-03-17 12:29:25 +01:00
Klas Lindfors
189fe723f1
add YKPIV_KEY_ATTESTATION to ykpiv_import_key()
2016-03-17 12:29:13 +01:00
Alessio Di Mauro
39f5dbd119
Typo.
2016-01-11 12:49:58 +01:00
Mikhail Denisenko
6042a2140e
Implemented C_SetPIN
2015-12-11 13:23:38 -05:00
Alessio Di Mauro
4849e494be
Add retired key definitions to libykpiv.
...
Include retired keys in import_key's check.
2015-11-20 15:44:19 +01:00
Klas Lindfors
ed38b96fe4
raise buffer sizes and remove a miss-leading error
2015-11-20 13:14:55 +01:00
Alessio Di Mauro
e39b203d66
Remove leftover print.
2015-11-20 11:45:35 +01:00
Alessio Di Mauro
6269280578
Add import private key to libykpiv.
2015-11-19 18:30:58 +01:00
Alessio Di Mauro
b6d4238856
Initial work on doing padding internally
2015-11-19 18:30:58 +01:00
Klas Lindfors
41b3b50613
always reset the context to SCARD_INVALID_CONTEXT after release
2015-11-11 15:02:55 +01:00
Alessio Di Mauro
f2a3a3acc1
YKPIV: Make sure that context is established only if it is invalid.
2015-11-10 15:36:35 +01:00
Alessio Di Mauro
d38df01c6c
Change applet to application.
2015-11-06 13:14:52 +01:00
Alessio Di Mauro
651280ca8b
Initialize context to -1 and always call establish context.
2015-11-03 09:56:27 +01:00
Klas Lindfors
e4059a5995
Merge branch 'master' into development
...
Conflicts:
NEWS
configure.ac
2015-10-20 20:48:57 +02:00
Klas Lindfors
7640d34245
use 261 byte buffer for receive
2015-09-28 11:15:30 +02:00
Alessio Di Mauro
d793f200bb
Merge branch 'development' of gitlab.yubico.com:/Yubico/yubico-piv-tool into development
...
Conflicts:
ykcs11/ykcs11.c
2015-09-08 18:04:45 +02:00
Alessio Di Mauro
99ebfdf37c
Added support for CKU_CONTEXT_SPECIFIC.
2015-09-08 18:00:48 +02:00
Klas Lindfors
49eab7dbfa
drop ykpiv_sign_data2() and change ykpiv_sign_data() to not pad
2015-09-08 15:29:10 +02:00
Klas Lindfors
4bbd888f97
let ykpiv_connect() call ykpiv_list_readers()
2015-09-08 12:29:07 +02:00
Klas Lindfors
8eb7595d42
add list-readers action to tool
...
also refactor ykpiv_list_readers() a bit
2015-09-08 12:26:42 +02:00
Klas Lindfors
1a9e62cec8
drop ykpiv_connect2() and add ykpiv_list_readers()
2015-09-07 15:54:57 +02:00
Klas Lindfors
984a124508
Merge branch 'master' into ykcs11
...
Conflicts:
NEWS
configure.ac
2015-09-07 14:34:34 +02:00
Klas Lindfors
b770155cbb
Merge branch 'devel/p384' into ykcs11
...
Conflicts:
NEWS
configure.ac
lib/ykpiv.c
lib/ykpiv.h
tool/util.c
tool/util.h
2015-09-07 14:32:37 +02:00
Klas Lindfors
da29e6947c
authentication failed is supposed to be 0x63cX not 0x630X
...
so mask everything but the low 4 bits for remaining tries
2015-08-24 08:28:49 +02:00
Klas Lindfors
aabe4fb20e
Merge branch 'master' into ykcs11
...
Conflicts:
lib/ykpiv.c
lib/ykpiv.h
2015-08-20 09:30:49 +02:00
Klas Lindfors
81f3b608fd
continue looping over the readers if one fails during setup
...
also continues if a reader fails when selecting (no applet)
2015-08-20 09:25:18 +02:00
Alessio Di Mauro
df2ff3cd51
Fixed pkcs1.5 padding
2015-08-12 15:41:58 +02:00