d2i_ECPrivate_key (3)
Leading comments
Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) Standard preamble: ========================================================================
NAME
i2d_ECPrivateKey, d2i_ECPrivate_key - Encode and decode functions for saving and reading EC_KEY structuresSYNOPSIS
#include <openssl/ec.h> EC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len); int i2d_ECPrivateKey(EC_KEY *key, unsigned char **out); unsigned int EC_KEY_get_enc_flags(const EC_KEY *key); void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
DESCRIPTION
The ECPrivateKey encode and decode routines encode and parse anThese functions are similar to the d2i_X509() functions, and you should refer to that page for a detailed description (see d2i_X509(3)).
The format of the external representation of the public key written by i2d_ECPrivateKey (such as whether it is stored in a compressed form or not) is described by the point_conversion_form. See EC_GROUP_copy(3) for a description of point_conversion_form.
When reading a private key encoded without an associated public key (e.g. if
The functions EC_KEY_get_enc_flags and EC_KEY_set_enc_flags get and set the value of the encoding flags for the key. There are two encoding flags currently defined -
RETURN VALUES
d2i_ECPrivateKey() returns a validi2d_ECPrivateKey() returns the number of bytes successfully encoded or a negative value if an error occurs. The error code can be obtained by ERR_get_error(3).
EC_KEY_get_enc_flags returns the value of the current encoding flags for the