5 EVP_PKEY_param_fromdata_init, EVP_PKEY_key_fromdata_init, EVP_PKEY_fromdata,
6 EVP_PKEY_param_fromdata_settable, EVP_PKEY_key_fromdata_settable
7 - functions to create key parameters and keys from user data
11 #include <openssl/evp.h>
13 int EVP_PKEY_param_fromdata_init(EVP_PKEY_CTX *ctx);
14 int EVP_PKEY_key_fromdata_init(EVP_PKEY_CTX *ctx);
15 int EVP_PKEY_fromdata(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey, OSSL_PARAM params[]);
16 const OSSL_PARAM *EVP_PKEY_param_fromdata_settable(EVP_PKEY_CTX *ctx);
17 const OSSL_PARAM *EVP_PKEY_key_fromdata_settable(EVP_PKEY_CTX *ctx);
21 EVP_PKEY_param_fromdata_init() initializes a public key algorithm context
22 for creating key parameters from user data.
24 EVP_PKEY_key_fromdata_init() initializes a public key algorithm context for
25 creating a key from user data.
27 EVP_PKEY_fromdata() creates key parameters or a key, given data from
28 I<params> and a context that's been initialized with
29 EVP_PKEY_param_fromdata_init() or EVP_PKEY_key_fromdata_init(). The result is
32 EVP_PKEY_param_fromdata_settable() and EVP_PKEY_key_fromdata_settable()
33 get a constant B<OSSL_PARAM> array that describes the settable parameters
34 that can be used with EVP_PKEY_fromdata().
35 See L<OSSL_PARAM(3)> for the use of B<OSSL_PARAM> as parameter descriptor.
39 These functions only work with key management methods coming from a
42 =for comment We may choose to make this available for legacy methods too...
46 EVP_PKEY_key_fromdata_init(), EVP_PKEY_param_fromdata_init() and
47 EVP_PKEY_fromdata() return 1 for success and 0 or a negative value for
48 failure. In particular a return value of -2 indicates the operation is
49 not supported by the public key algorithm.
53 L<EVP_PKEY_CTX_new(3)>, L<provider(7)>
57 These functions were added in OpenSSL 3.0.
61 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
63 Licensed under the Apache License 2.0 (the "License"). You may not use
64 this file except in compliance with the License. You can obtain a copy
65 in the file LICENSE in the source distribution or at
66 L<https://www.openssl.org/source/license.html>.