5 EVP_PKEY_CTX_new, EVP_PKEY_CTX_new_id, EVP_PKEY_CTX_new_provided,
6 EVP_PKEY_CTX_dup, EVP_PKEY_CTX_free
7 - public key algorithm context functions
11 #include <openssl/evp.h>
13 EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
14 EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
15 EVP_PKEY_CTX *EVP_PKEY_CTX_new_provided(const char *name,
16 const char *propquery);
17 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(const EVP_PKEY_CTX *ctx);
18 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
22 The EVP_PKEY_CTX_new() function allocates public key algorithm context using
23 the algorithm specified in I<pkey> and ENGINE I<e>.
25 The EVP_PKEY_CTX_new_id() function allocates public key algorithm context
26 using the algorithm specified by I<id> and ENGINE I<e>.
28 The EVP_PKEY_CTX_new_provided() function allocates a public key
29 algorithm context using the algorithm specified by I<name> and the
30 property query I<propquery>. The strings aren't duplicated, so they
31 must remain unchanged for the lifetime of the returned B<EVP_PKEY_CTX>
32 or of any of its duplicates.
34 EVP_PKEY_CTX_new_id() and EVP_PKEY_CTX_new_provided() are normally
35 used when no B<EVP_PKEY> structure is associated with the operations,
36 for example during parameter generation or key generation for some
39 EVP_PKEY_CTX_dup() duplicates the context I<ctx>.
41 EVP_PKEY_CTX_free() frees up the context I<ctx>.
42 If I<ctx> is NULL, nothing is done.
46 The B<EVP_PKEY_CTX> structure is an opaque public key algorithm context used
47 by the OpenSSL high level public key API. Contexts B<MUST NOT> be shared between
48 threads: that is it is not permissible to use the same context simultaneously
53 EVP_PKEY_CTX_new(), EVP_PKEY_CTX_new_id(), EVP_PKEY_CTX_dup() returns either
54 the newly allocated B<EVP_PKEY_CTX> structure of B<NULL> if an error occurred.
56 EVP_PKEY_CTX_free() does not return a value.
64 These functions were added in OpenSSL 1.0.0.
68 Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
70 Licensed under the Apache License 2.0 (the "License"). You may not use
71 this file except in compliance with the License. You can obtain a copy
72 in the file LICENSE in the source distribution or at
73 L<https://www.openssl.org/source/license.html>.