Andreas Schwier
5279bfa2d1
sc-hsm: Prevent double-free crash if key generation fails
...
Fixes #262 (SEGV when reader does not support extended length ADPU)
2014-07-09 14:27:08 +02:00
Andreas Schwier
440289a091
sc-hsm: reduce indicated maximum PIN length to 15
...
Fix bogus minimum PIN length to support more PIN pad readers
2014-06-26 17:57:26 +02:00
Viktor Tarasov
dd5115bc02
pkcs15: use 'direct' public key value
...
pkcs15: in pubkey-info data
* introduced new 'direct' 'raw' and 'spki' members
* removed 'encoded der data' member
* in 'read-public-key' try firstly SPKI direct value
pkcs11:
'direct' data used when getting CKA_VALUE attribute of public key
pkcs15init:
* initialize 'raw' and 'spki' direct public key value
2014-02-09 18:49:58 +01:00
Viktor Tarasov
2f8fc498ae
sc-hsm: emu: initialize EC key params
...
;fix EC parameters for the emulated public keys
;add 'sc-context' argument in some function prototypes
2014-02-09 18:49:58 +01:00
Andreas Schwier
67dc60f707
sc-hsm: Added support for persistent EC public keys generated from certificate signing requests
2014-01-09 21:41:12 +01:00
Andreas Schwier
d1ba6164ad
sc-hsm: Added support for token label to be set via C_InitToken or sc-hsm-tool
2014-01-08 16:07:13 +01:00
Frank Morgner
a635d44336
fixed initialization of structure
2013-09-29 19:19:17 +02:00
Frank Morgner
d21830344f
fixed a ton of compiler warnings
2013-08-03 19:15:55 +02:00
Andreas Schwier
b34d916e60
sc-hsm: Fixed problem deleting CA certificates
...
sc-hsm: Fixed public key format returned when generating ECC keys
2013-02-15 15:02:28 +01:00
Andreas Schwier
99af6cd8ee
sc-hsm: Fixed a bug that prevents a newly generated 2048 key to show up at the PKCS#11 interface
2013-01-27 18:42:33 +01:00
Andreas Schwier
0adec1bddd
sc-hsm: Fixed bug with memory released to early
2012-11-20 08:46:27 +01:00
Andreas Schwier
bbbfae4bf0
sc-hsm: Now saving the internal CSR in place of the certificate and decoding the public key at initialization (RSA only)
2012-11-20 08:46:27 +01:00
Andreas Schwier
7c714860a2
sc-hsm: Fixed bug decoding CVCs without domain parameter
2012-11-11 12:53:03 +01:00
Andreas Schwier
33da14c459
sc-hsm: Added code to prevent CV certificates being listed as X.509 certificates
2012-11-11 12:53:03 +01:00
Viktor Tarasov
4cf3a3b204
move CK_VERSION data from 'pkcs15' to 'sc-card'
...
CK_VERSION is included into PKCS#11 data but is not specified by PKCS#15.
CK_VERSION can be provided by card's pkcs15 emulator or by the card's driver,
including the cards with the native support of pkcs#15 (and thus without pkcs15 emulator).
That's why the more general solution is to have these data included into 'sc-card' data type.
2012-10-21 16:24:11 +02:00
Andreas Schwier
aaedef70b5
sc-hsm: Added ability to initialize SmartCard-HSM using C_Initialize and C_InitPIN on PKCS#11 interface
2012-10-21 15:51:55 +02:00
Andreas Schwier
fba298c6f4
pksc11: Added ability to indicate hardware and firmware version information at PKCS#11 interface
2012-10-21 15:51:55 +02:00
Andreas Schwier
72786abe1f
sc-hsm: Added write support for RSA and ECC keys, certificates and data objects
2012-10-01 13:09:02 +02:00
Andreas Schwier
d180fc324c
sc-hsm: Added basic cvc support to read device identity. Used for token serial number and GUID generation
2012-08-23 22:06:01 +02:00
Andreas Schwier
2e0ef7a0ab
sc-hsm: Improved usablity in opensc-explorer
2012-08-20 11:22:02 +02:00
Andreas Schwier
e0f9edb121
sc-hsm: fixed to be compiled with Microsoft VC
2012-08-20 11:22:02 +02:00
Frank Thater
4ff917bd25
Added obj files to Makefile.mak for windows build
...
Fixed WIN32 compiler errors
Adjusted log message calls to short form
modified: src/libopensc/Makefile.mak
modified: src/libopensc/card-sc-hsm.c
modified: src/libopensc/pkcs15-sc-hsm.c
2012-08-20 11:22:02 +02:00
Frank Thater
1a7ca32865
Added support for SmartCard-HSM and ECC keys
...
modified: src/libopensc/Makefile.am
new file: src/libopensc/card-sc-hsm.c
new file: src/libopensc/card-sc-hsm.h
modified: src/libopensc/cards.h
modified: src/libopensc/ctx.c
modified: src/libopensc/pkcs15-prkey.c
new file: src/libopensc/pkcs15-sc-hsm.c
modified: src/libopensc/pkcs15-syn.c
2012-08-20 11:22:01 +02:00