1EVP_PKEY_new(3)                     OpenSSL                    EVP_PKEY_new(3)
2
3
4

NAME

6       EVP_PKEY_new, EVP_PKEY_free - private key allocation functions.
7

SYNOPSIS

9        #include <openssl/evp.h>
10
11        EVP_PKEY *EVP_PKEY_new(void);
12        void EVP_PKEY_free(EVP_PKEY *key);
13

DESCRIPTION

15       The EVP_PKEY_new() function allocates an empty EVP_PKEY structure which
16       is used by OpenSSL to store private keys.
17
18       EVP_PKEY_free() frees up the private key key.
19

NOTES

21       The EVP_PKEY structure is used by various OpenSSL functions which
22       require a general private key without reference to any particular
23       algorithm.
24
25       The structure returned by EVP_PKEY_new() is empty. To add a private key
26       to this empty structure the functions described in EVP_PKEY_set1_RSA(3)
27       should be used.
28

RETURN VALUES

30       EVP_PKEY_new() returns either the newly allocated EVP_PKEY structure of
31       NULL if an error occurred.
32
33       EVP_PKEY_free() does not return a value.
34

SEE ALSO

36       EVP_PKEY_set1_RSA(3)
37

HISTORY

39       TBA
40
41
42
431.0.2o                            2020-01-28                   EVP_PKEY_new(3)
Impressum