diff options
author | Matt Caswell <matt@openssl.org> | 2014-08-22 18:04:19 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2014-08-27 19:49:35 +0200 |
commit | f063e30fe9f316067950bdf0397b51cf87d4b6a6 (patch) | |
tree | 58275cbcd6367feacde8e9e4499465daaa9a381a /doc | |
parent | 0388ac4c99e801462dafef3f2dab3f255ec33c96 (diff) |
RT3065: automatically generate a missing EC public key
When d2i_ECPrivateKey reads a private key with a missing (optional) public key,
generate one automatically from the group and private key.
Reviewed-by: Dr Stephen Henson <steve@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/EC_KEY_new.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/crypto/EC_KEY_new.pod b/doc/crypto/EC_KEY_new.pod index b762cbcb73..2027569f44 100644 --- a/doc/crypto/EC_KEY_new.pod +++ b/doc/crypto/EC_KEY_new.pod @@ -74,6 +74,11 @@ flags currently defined - EC_PKEY_NO_PARAMETERS and EC_PKEY_NO_PUBKEY. These fl converted into ASN1 in a call to i2d_ECPrivateKey. If EC_PKEY_NO_PARAMETERS is set then the public parameters for the curve are not encoded along with the private key. If EC_PKEY_NO_PUBKEY is set then the public key is not encoded along with the private key. +When reading a private key encoded with EC_PKEY_NO_PUBKEY, +d2i_ECPrivateKey generates the missing public key +automatically. Private keys encoded with EC_PKEY_NO_PARAMETERS cannot +be loaded using d2i_ECPrivateKey. + The functions EC_KEY_get_conv_form and EC_KEY_set_conv_form get and set the point_conversion_form for the B<key>. For a description of point_conversion_forms please refer to L<EC_POINT_new(3)|EC_POINT_new(3)>. |