Commit Graph

81 Commits

Author SHA1 Message Date
Alessio Di Mauro a853902bcb YKCS11: more elaborate solution for stripping DER encoding from ECDSA signatures.
It is possible to receive different padding length for r and s, where their length
is [-1, 1] wrt the component lenght. Take this into account.
2015-11-12 03:07:35 +01:00
Alessio Di Mauro 46455168a2 YKCS11: print out signature related data only if debug is enabled. 2015-11-06 16:09:02 +01:00
Alessio Di Mauro 71bd376a39 YKCS11: expose module version. 2015-11-06 11:02:11 +01:00
Alessio Di Mauro fc9ebe996f YKCS11: remove some warnings. 2015-11-06 11:02:11 +01:00
Alessio Di Mauro 602208bf20 YKCS11: Change DBG to print to stderr. 2015-11-05 16:35:15 +01:00
Alessio Di Mauro 98f3462e5e YKCS11: Remove some useless comments. 2015-11-05 14:26:29 +01:00
Alessio Di Mauro f3bd827100 YKCS11: add more precondition checks during SingInit. 2015-11-05 14:09:22 +01:00
Alessio Di Mauro dcc2545a4c YKCS11: added certificate deletion. 2015-11-04 14:02:29 +01:00
Alessio Di Mauro e6bca9b332 YKCS11: Suppress some warnings. 2015-10-28 11:43:41 +01:00
Alessio Di Mauro b7c0e8ea6b YKCS11: added support for touch and PIN policy during generate. 2015-10-28 11:34:42 +01:00
Alessio Di Mauro a9ddf3e3b2 Added support for touch and change policy during key import. 2015-10-27 17:33:30 +01:00
Alessio Di Mauro a24727fd44 Move login into common functions. 2015-09-24 11:40:17 +02:00
Alessio Di Mauro 29bddc33b4 Fix return value check on parse_readers. 2015-09-24 11:39:47 +02:00
Alessio Di Mauro 4b668502ee Minor fixes. 2015-09-17 17:05:29 +02:00
Alessio Di Mauro bd6e6db138 Add parsing of model number. 2015-09-09 16:31:25 +02:00
Alessio Di Mauro 44dae19348 Imporve support for multiple readers/cards. 2015-09-09 15:42:14 +02:00
Alessio Di Mauro d820c314c4 Free more. 2015-09-09 13:16:45 +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 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
Alessio Di Mauro ee2a364c15 More cleanup. 2015-09-02 16:06:50 +02:00
Alessio Di Mauro f646ec9dde Added key import. 2015-09-01 16:16:47 +02:00
Alessio Di Mauro d2cefc66b7 Initial stab at private key import. 2015-08-28 17:15:11 +02:00
Alessio Di Mauro 5ca058bdfa Added certificate import 2015-08-28 13:47:57 +02:00
Alessio Di Mauro d7f5dd35f4 Squalch more warnings. 2015-08-26 16:59:03 +02:00
Alessio Di Mauro 5a2c00deb7 Add of DigestInit. 2015-08-26 16:58:45 +02:00
Alessio Di Mauro f776ac58a3 Strip DER encoding from EC signatures. 2015-08-24 17:39:00 +02:00
Alessio Di Mauro e2c4e9fc2e Use longer buffer to store the signature. 2015-08-24 14:20:01 +02:00
Alessio Di Mauro 3150a36988 More debug messages. 2015-08-21 15:57:28 +02:00
Alessio Di Mauro 5a069f1077 Temporary fix for multiple logins. 2015-08-21 15:41:32 +02:00
Alessio Di Mauro 0184424f3f Add debug messages for failed login. 2015-08-21 14:10:38 +02:00
Alessio Di Mauro 0c3c9c5a00 Close the operation after sign is done. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro 2420874125 More debug messages and precondition checks. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro 8fa6ff8edb Use buffer length while storing cert. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro 6cbdbc3c14 More debug messages and precondition checks. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro 255815d78f Skip PIN initialization. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro 4542a4506b Skip token initialization. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro f27ca3837c Add more precondition checks and debug messages. 2015-08-21 10:42:43 +02:00
Alessio Di Mauro a792e16333 Fixed unhashed sign mechanisms. 2015-08-19 15:20:27 +02:00
Alessio Di Mauro de083bb27a Fixed wrong free. 2015-08-12 17:05:47 +02:00
Alessio Di Mauro 9c082be082 Added simple logout function. 2015-08-12 16:05:03 +02:00
Alessio Di Mauro df2ff3cd51 Fixed pkcs1.5 padding 2015-08-12 15:41:58 +02:00
Alessio Di Mauro 4010ebbb91 Update object in the session (when the object wasn't there to begin with). 2015-08-11 16:54:25 +02:00
Alessio Di Mauro 2a6acc5259 Update object in the session after key creation (if object already exists). 2015-08-11 16:28:59 +02:00
Alessio Di Mauro 097bfaf7a1 Added EC key generation. 2015-08-11 11:46:40 +02:00
Alessio Di Mauro 5bef13acec First stab at key generation. 2015-08-07 17:09:09 +02:00
Alessio Di Mauro 6f0a9e7a09 Moved debug capabilities to its own file.
Fixed EC point replresentation.
2015-08-06 17:16:43 +02:00
Alessio Di Mauro fa2cdaa2ed Added more attribute extraction for objects. 2015-08-06 16:22:48 +02:00