5 EVP_PKEY_new, EVP_PKEY_free - private key allocation functions.
9 #include <openssl/evp.h>
11 EVP_PKEY *EVP_PKEY_new(void);
12 void EVP_PKEY_free(EVP_PKEY *key);
17 The EVP_PKEY_new() function allocates an empty B<EVP_PKEY>
18 structure which is used by OpenSSL to store private keys.
20 EVP_PKEY_free() frees up the private key B<key>.
24 The B<EVP_PKEY> structure is used by various OpenSSL functions
25 which require a general private key without reference to any
28 The structure returned by EVP_PKEY_new() is empty. To add a
29 private key to this empty structure the functions described in
30 L<EVP_PKEY_set1_RSA(3)|EVP_PKEY_set1_RSA(3)> should be used.
34 EVP_PKEY_new() returns either the newly allocated B<EVP_PKEY>
35 structure of B<NULL> if an error occurred.
37 EVP_PKEY_free() does not return a value.
41 L<EVP_PKEY_set1_RSA(3)|EVP_PKEY_set1_RSA(3)>