1EVP_PKEY_CTX_NEW(3) OpenSSL EVP_PKEY_CTX_NEW(3)
2
3
4
6 EVP_PKEY_CTX_new, EVP_PKEY_CTX_new_id, EVP_PKEY_CTX_dup,
7 EVP_PKEY_CTX_free - public key algorithm context functions
8
10 #include <openssl/evp.h>
11
12 EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
13 EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
14 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);
15 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
16
18 The EVP_PKEY_CTX_new() function allocates public key algorithm context
19 using the algorithm specified in pkey and ENGINE e.
20
21 The EVP_PKEY_CTX_new_id() function allocates public key algorithm
22 context using the algorithm specified by id and ENGINE e. It is
23 normally used when no EVP_PKEY structure is associated with the
24 operations, for example during parameter generation of key generation
25 for some algorithms.
26
27 EVP_PKEY_CTX_dup() duplicates the context ctx.
28
29 EVP_PKEY_CTX_free() frees up the context ctx. If ctx is NULL, nothing
30 is done.
31
33 The EVP_PKEY_CTX structure is an opaque public key algorithm context
34 used by the OpenSSL high-level public key API. Contexts MUST NOT be
35 shared between threads: that is it is not permissible to use the same
36 context simultaneously in two threads.
37
39 EVP_PKEY_CTX_new(), EVP_PKEY_CTX_new_id(), EVP_PKEY_CTX_dup() returns
40 either the newly allocated EVP_PKEY_CTX structure of NULL if an error
41 occurred.
42
43 EVP_PKEY_CTX_free() does not return a value.
44
46 EVP_PKEY_new(3)
47
49 These functions were added in OpenSSL 1.0.0.
50
52 Copyright 2006-2020 The OpenSSL Project Authors. All Rights Reserved.
53
54 Licensed under the OpenSSL license (the "License"). You may not use
55 this file except in compliance with the License. You can obtain a copy
56 in the file LICENSE in the source distribution or at
57 <https://www.openssl.org/source/license.html>.
58
59
60
611.1.1q 2022-07-07 EVP_PKEY_CTX_NEW(3)