summaryrefslogtreecommitdiffstats
path: root/doc/crypto/EC_KEY_new.pod
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-08-22 18:04:19 +0200
committerEmilia Kasper <emilia@openssl.org>2014-08-27 19:50:15 +0200
commit2083f7c465d07867dd9867b8742bb71c03d1f203 (patch)
tree82854e02b8f8ca1e825c02232c2c7281a4b54586 /doc/crypto/EC_KEY_new.pod
parent1f2b943254ce590867717375e4f364860a9b7154 (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> (cherry picked from commit ed383f847156940e93f256fed78599873a4a9b28)
Diffstat (limited to 'doc/crypto/EC_KEY_new.pod')
-rw-r--r--doc/crypto/EC_KEY_new.pod5
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)>.