aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c
Commit message (Collapse)AuthorAgeFilesLines
* public-key: Add optional parameters argument to verify() methodTobias Brunner2017-11-081-1/+1
|
* pkcs11: Fix encoding of RSA keys if unnecessarily zero prefixedTobias Brunner2015-08-061-3/+8
| | | | | | | | | | | | | | Some tokens/libraries seem to prefix all numbers with zero bytes even if not necessary (e.g. the default exponent 0x010001). If we don't fix that, the fingerprints calculated based on the retrieved values will be incorrect. Even if the pkcs1 plugin can properly handle numbers that are not in two's complement since a81bd670b086 ("Added PUBKEY_RSA_MODULUS encoding type") we prefix them with zero if necessary as other encoders might expect them in two's complement. Fixes #1012.
* pkcs11: Convert RFC 3279 ECDSA signatures when verifyingTobias Brunner2015-03-091-4/+33
| | | | References #873.
* pkcs11: Properly encode EC_POINTs created on a tokenTobias Brunner2015-03-091-5/+8
| | | | | | | Some tokens might not fail when creating EC public keys in the incorrect format, but they will later not be able to use them to verify signatures. References #872.
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Move pkcs11 public key lookup function declaration to header fileMartin Willi2012-10-241-14/+4
|
* Add a return value to hasher_t.allocate_hash()Martin Willi2012-07-161-5/+7
|
* Compiler warnings fixed.Tobias Brunner2012-02-141-1/+1
|
* pkcs11: Fixed a bug when creating public keys.Tobias Brunner2011-11-091-1/+1
|
* pkcs11: Make sure a key can be used for a given signature scheme.Tobias Brunner2011-11-021-1/+2
|
* pkcs11: We have to create our own hashes for some signature schemes.Tobias Brunner2011-11-021-1/+16
|
* pkcs11: Lookup the public key of a private key by CKA_ID.Tobias Brunner2011-11-021-0/+116
| | | | | | Currently this only works if a public key object with the same ID is available, if there isn't one we could search for a certificate with the same ID and extract the key from there.
* pkcs11: Added support to encode ECDSA public keys.Tobias Brunner2011-11-021-0/+89
|
* pkcs11: Parse ECDSA public keys and find/create them on tokens.Tobias Brunner2011-11-021-2/+177
|
* pkcs11: Added generic functions to find/create public keys on tokens.Tobias Brunner2011-11-021-40/+75
|
* pkcs11: Store public key length in bits.Tobias Brunner2011-11-021-3/+3
|
* pkcs11: Fix encoding of RSA public keys.Tobias Brunner2011-11-021-0/+4
|
* pkcs11: Use create_object_attr_enumerator to encode RSA public key.Tobias Brunner2011-11-021-17/+7
|
* pkcs11: Instead of a mutex use a new session to do multipart operations.Tobias Brunner2011-11-021-19/+27
|
* Register manager of pkcs11 plugin as library objectMartin Willi2011-08-241-2/+2
|
* Implemented public key encryption/private key decryption in PKCS#11Martin Willi2010-08-111-8/+39
|
* Use bits instead of bytes for a private/public keyMartin Willi2010-08-101-2/+2
|
* Added support for different encryption schemes to private/public keysMartin Willi2010-08-101-1/+2
|
* Create a PKCS#11 session public key if we don't find oneMartin Willi2010-08-061-5/+100
|
* Implemented PKCS#11 RSA public key for keys found on a tokenMartin Willi2010-08-061-0/+346