5 RSA_new, RSA_free - allocate and free RSA objects
9 #include <openssl/rsa.h>
13 void RSA_free(RSA *rsa);
17 RSA_new() allocates and initializes an B<RSA> structure.
19 RSA_free() frees the B<RSA> structure and its components. The key is
20 erased before the memory is erased returned to the system.
24 If the allocation fails, RSA_new() returns B<NULL> and sets an error
25 code that can be obtained by ERR_get_error(3). Otherwise it returns
26 a pointer to the newly allocated structure.
28 RSA_free() returns no value.
32 err(3), rsa(3), RSA_generate_key(3)
36 RSA_new() and RSA_free() are available in all versions of SSLeay and OpenSSL.