openssl/test/recipes/30-test_evp_pkey_provided/EC.pub.txt
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

10 lines
285 B
Plaintext

Public-Key: (256 bit)
pub:
04:1b:93:67:55:1c:55:9f:63:d1:22:a4:d8:d1:0a:
60:6d:02:a5:77:57:c8:a3:47:73:3a:6a:08:28:39:
bd:c9:d2:80:ec:e9:a7:08:29:71:2f:c9:56:82:ee:
9a:85:0f:6d:7f:59:5f:8c:d1:96:0b:df:29:3e:49:
07:88:3f:9a:29
ASN1 OID: prime256v1
NIST CURVE: P-256