1EC_KEY_GET_ENC_FLAGS(3) OpenSSL EC_KEY_GET_ENC_FLAGS(3)
2
3
4
6 EC_KEY_get_enc_flags, EC_KEY_set_enc_flags - Get and set flags for
7 encoding EC_KEY structures
8
10 #include <openssl/ec.h>
11
12 unsigned int EC_KEY_get_enc_flags(const EC_KEY *key);
13 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
14
16 The format of the external representation of the public key written by
17 i2d_ECPrivateKey() (such as whether it is stored in a compressed form
18 or not) is described by the point_conversion_form. See EC_GROUP_copy(3)
19 for a description of point_conversion_form.
20
21 When reading a private key encoded without an associated public key
22 (e.g. if EC_PKEY_NO_PUBKEY has been used - see below), then
23 d2i_ECPrivateKey() generates the missing public key automatically.
24 Private keys encoded without parameters (e.g. if EC_PKEY_NO_PARAMETERS
25 has been used - see below) cannot be loaded using d2i_ECPrivateKey().
26
27 The functions EC_KEY_get_enc_flags() and EC_KEY_set_enc_flags() get and
28 set the value of the encoding flags for the key. There are two encoding
29 flags currently defined - EC_PKEY_NO_PARAMETERS and EC_PKEY_NO_PUBKEY.
30 These flags define the behaviour of how the key is converted into ASN1
31 in a call to i2d_ECPrivateKey(). If EC_PKEY_NO_PARAMETERS is set then
32 the public parameters for the curve are not encoded along with the
33 private key. If EC_PKEY_NO_PUBKEY is set then the public key is not
34 encoded along with the private key.
35
37 EC_KEY_get_enc_flags() returns the value of the current encoding flags
38 for the EC_KEY.
39
41 crypto(7), EC_GROUP_new(3), EC_GROUP_copy(3), EC_POINT_new(3),
42 EC_POINT_add(3), EC_GFp_simple_method(3), d2i_ECPKParameters(3),
43 d2i_ECPrivateKey(3)
44
46 Copyright 2015-2017 The OpenSSL Project Authors. All Rights Reserved.
47
48 Licensed under the OpenSSL license (the "License"). You may not use
49 this file except in compliance with the License. You can obtain a copy
50 in the file LICENSE in the source distribution or at
51 <https://www.openssl.org/source/license.html>.
52
53
54
551.1.1i 2021-01-26 EC_KEY_GET_ENC_FLAGS(3)