openssl/providers
Shane Lontis f552d90045 Add Serializers for EC
Provide EC serializers for text, pem and der.

EC parameters use ANS1 'CHOICE' - which means they are more embedded than other parameters used by
other KEY types (which normally have a SEQUENCE at the top level).
For this reason the ANS1_STRING type that was being passed around has been changed to a void so that the
code can still be shared with EC.

The EC serializer only supports named curves currently.

NOTE the serializer code assumes PKCS8 format - if the older encode methods are needed they will need to be
added in another PR. (Probably when deserialization is considered).

EVP_PKEY_key_fromdata_init was changed from using a keypair selection to all bits of a key. A side effect of this was
that the very restrictive checks in the ecx code needed to be relaxed as it was assuming all selection flags were non
optional. As this is not the case for any other key the code has been modified.

Fixed a bug in legacy_ctrl_str_to_params() - "ecdh_cofactor_mode" was being incorrectly converted to the wrong keyname.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11107)
2020-03-04 07:48:45 +10:00
..
common PROV: add RSA signature implementation 2020-02-22 01:07:15 +01:00
fips Add pairwise consistency self tests to asym keygenerators 2020-03-03 14:02:36 +10:00
implementations Add Serializers for EC 2020-03-04 07:48:45 +10:00
build.info PROV: Build the main FIPS module code with FIPS_MODE defined 2020-02-14 21:36:02 +01:00
defltprov.c Add Serializers for EC 2020-03-04 07:48:45 +10:00
legacyprov.c Introduce the provider property 2020-02-21 20:17:02 +00:00