Commit Graph

47 Commits

Author SHA1 Message Date
Alessio Di Mauro bdfe49f223 Make slot 9e private so that OpenSSL can ask for a PIN 2018-05-09 16:34:08 +02:00
Alessio Di Mauro 7b7c798ef6 Return correct modulus
When asked for CKA_MODULUS on a private key return only n and not the
whole key

Relates to #98.
2016-10-05 16:39:54 +02:00
Simon Josefsson 89bec1260a Improve license headers. 2016-08-12 15:30:06 +02:00
Klas Lindfors e7b4fc6ccf switch out the pkcs11 headers for the SCUTE pkcs11 header from opensc
create pkcs11y.h for our additional things
2016-08-12 14:00:15 +02:00
Klas Lindfors fead011e71 add copyright and license header 2016-08-12 13:37:56 +02:00
Mikhail Denisenko 5a60faf779 Fixed extraction of RSA modulus and exponent 2015-12-09 13:13:24 -05:00
Mikhail Denisenko 8297815622 Return CKR_ATTRIBUTE_TYPE_INVALID instead of CKR_FUNCTION_FAILED on unsupported attributes.
This result works better with Java IaikPkcs11 wrapper, and possibly others.
2015-12-03 18:04:44 -05:00
Alessio Di Mauro 968348a4c2 YKCS11: use memcpy. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 2d7b8fadc9 Capitalize. 2015-11-24 11:12:56 +01:00
Alessio Di Mauro c16aaaa7d0 Add retired keys in more places. 2015-11-24 11:05:21 +01:00
Alessio Di Mauro 7de6ab1450 Add OIDs for retired keys and rearrange. 2015-11-23 16:29:17 +01:00
Alessio Di Mauro 11a7d11e48 Start adding retired keys to ykcs11. 2015-11-20 17:39:33 +01:00
Alessio Di Mauro 8e3314ab42 Switch ykcs11 to use private key import from libykpiv. 2015-11-19 18:30:58 +01:00
Alessio Di Mauro b11dcfd14b YKCS11: accept EC keys that are 1 byte shorter. 2015-11-19 18:30:58 +01:00
Alessio Di Mauro 8fa80be0b1 Constify.
Whitespace.
2015-11-05 17:31:27 +01:00
Alessio Di Mauro b7be3be4b4 YKCS11: add check on buffer length. 2015-11-05 17:14:04 +01:00
Alessio Di Mauro 79e651fe58 YKCS11: initialize more. 2015-11-05 17:05:09 +01:00
Alessio Di Mauro 69184eeb86 YKCS11: remove more messsages 2015-11-05 16:46:54 +01:00
Alessio Di Mauro 602208bf20 YKCS11: Change DBG to print to stderr. 2015-11-05 16:35:15 +01:00
Alessio Di Mauro 83099997c0 YKCS11: fix type typo. 2015-11-04 17:19:56 +01:00
Alessio Di Mauro dcc2545a4c YKCS11: added certificate deletion. 2015-11-04 14:02:29 +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 4f12dc41e9 YKCS11: Added raw certificate extraction. 2015-10-23 19:43:36 +02:00
Alessio Di Mauro bae1005fb4 Export more info for EC keys too. 2015-09-17 16:46:58 +02:00
Alessio Di Mauro 2ea35bbd18 Export more public key parameters. 2015-09-17 16:46:58 +02:00
Alessio Di Mauro 22d8f4f9fe Minor cleanups. 2015-09-09 13:59:36 +02:00
Alessio Di Mauro ee2a364c15 More cleanup. 2015-09-02 16:06:50 +02:00
Alessio Di Mauro c13426a2e8 Fixed typo. 2015-09-02 11:49:17 +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 6a60c779da More free. 2015-08-19 13:23:01 +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 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
Alessio Di Mauro e89de35efc Added PSS (first stab). 2015-08-05 15:40:24 +02:00
Alessio Di Mauro 67ed63bc28 Hiding private objects if user is not logged in. 2015-08-03 15:16:50 +02:00
Alessio Di Mauro 706ff894f2 Added object matching. 2015-08-03 13:31:11 +02:00
Alessio Di Mauro b4152b8f03 Improvement on sign and object handling. 2015-07-31 17:14:16 +02:00
Alessio Di Mauro 175f0ff42b First crude signature implementation plus additional refactor. 2015-07-30 17:04:24 +02:00
Alessio Di Mauro 246cf626b2 Start to do some crypto. 2015-07-28 18:56:47 +02:00
Alessio Di Mauro bd144cc621 Yet another refactor of objects. 2015-07-28 17:57:56 +02:00
Alessio Di Mauro b9268982a5 Refactor more. 2015-07-24 15:39:37 +02:00
Alessio Di Mauro 91d7e52b21 Refined get attribute value. 2015-07-22 14:39:19 +02:00
Alessio Di Mauro 7da7e8ab97 More object handling. 2015-07-21 17:47:49 +02:00
Alessio Di Mauro fa909fca30 Initial work to add object handling. 2015-07-20 17:04:39 +02:00