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. It is equivalent to
18 calling RSA_new_method(NULL).
20 RSA_free() frees the B<RSA> structure and its components. The key is
21 erased before the memory is returned to the system.
22 If B<rsa> is NULL nothing is done.
26 If the allocation fails, RSA_new() returns B<NULL> and sets an error
27 code that can be obtained by L<ERR_get_error(3)>. Otherwise it returns
28 a pointer to the newly allocated structure.
30 RSA_free() returns no value.
35 L<RSA_generate_key(3)>,
40 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
42 Licensed under the OpenSSL license (the "License"). You may not use
43 this file except in compliance with the License. You can obtain a copy
44 in the file LICENSE in the source distribution or at
45 L<https://www.openssl.org/source/license.html>.