opensc/src
Alexander Paetzelt 09a594d0f0 OpenPGP Card v3 ECC support (#1506)
* pgp: initialize ecc keys for OPC3

* Add supported ECC algorithms by card version

* Add tasks identified so far

* pgp: Recognize ECC set on card

* pgp: get_pubkey_pem read ECC pubkey from card

* pgp: minor code changes for ECC compatibility

* pgp: expand sc_cardctl_openpgp_keygen_info to hold ec info

* Fix segfault problem in pkcs15-pubkey.c

* pgp: enable key generation with pkcs15-init and ECC

* pgp: adapt calculate_and_store_fingerprint to accept ECC

* pgp: adapt rest of pgp_gen_key and subfunctions to accept ECC

* pgp: add kdf parameters for ECDH fingerprint calculation

* pgp: enable key import with pkcs15-init and ECC

* pkcs15-pubkey: fix_ec_parameters onlz accpets explicit data or named_curve

* Fix some mistakes during merge

* More clean up for PR

* Fix some ugly alignments

* Improve code readability

* Prevent unitialized variable by using FUNC_RETURN

* OpenPGP: add length check

* pgp: save exponent length in bits for sc_cardctl_openpgp_keystore_info_t

* pgp: length checks and reallocations

* pgp: oid init added

* OpenPGP: slightly re-factor pgp_update_new_algo_attr()

* replace loop copy with memcpy()
* use ushort2bebytes() to set RSA modulus & exponent
* use symbolic name SC_OPENPGP_KEYFORMAT_RSA_STD for the key import format

* OpenPGP: slighly re-factor pgp_parse_and_set_pubkey_output()

* check for RSA modulus & exponent lengths not being a multiple of 8
* make sure RSA modulus & exponent lengths are always set
* remove a left-over RSA setting from the EC code

* pgp: adding BYTES4BITS

* pgp: initialization of values in pgp_build_extended_header_list based on key type

* pgp: add BYTES4BITS and remove unnecessary tests

* Fix broken pgp_update_new_algo_attr

* pgp: fix the ecpoint_len variable
2019-01-30 22:00:36 +01:00
..
common added include guards to compatibility headers 2019-01-20 23:02:21 +01:00
libopensc OpenPGP Card v3 ECC support (#1506) 2019-01-30 22:00:36 +01:00
minidriver md: clean OpenSSL memory when DLL is unloaded 2018-11-13 15:50:17 +01:00
pkcs11 removed unused defines 2019-01-30 21:57:59 +01:00
pkcs15init OpenPGP Card v3 ECC support (#1506) 2019-01-30 22:00:36 +01:00
scconf fix typos 2018-04-15 09:34:45 +02:00
sm fixed misuse of realloc 2019-01-30 21:57:59 +01:00
smm replace SC_FUNC_CALLED with LOG_FUNC_CALLED 2018-12-06 09:26:42 +01:00
tests added tests for Microsoft CryptoAPI 2019-01-15 07:30:13 +01:00
tools OpenPGP Card v3 ECC support (#1506) 2019-01-30 22:00:36 +01:00
ui gio: avoid unneccessary unitialization 2018-10-22 21:44:07 +02:00
Makefile.am PKCS#11 testsuite (#1224) 2018-05-18 12:31:55 +02:00
Makefile.mak PKCS#11 testsuite (#1224) 2018-05-18 12:31:55 +02:00