1RSA_NEW(3)                          OpenSSL                         RSA_NEW(3)
2
3
4

NAME

6       RSA_new, RSA_free - allocate and free RSA objects
7

SYNOPSIS

9        #include <openssl/rsa.h>
10
11        RSA *RSA_new(void);
12
13        void RSA_free(RSA *rsa);
14

DESCRIPTION

16       RSA_new() allocates and initializes an RSA structure. It is equivalent
17       to calling RSA_new_method(NULL).
18
19       RSA_free() frees the RSA structure and its components. The key is
20       erased before the memory is returned to the system.  If rsa is NULL
21       nothing is done.
22

RETURN VALUES

24       If the allocation fails, RSA_new() returns NULL and sets an error code
25       that can be obtained by ERR_get_error(3). Otherwise it returns a
26       pointer to the newly allocated structure.
27
28       RSA_free() returns no value.
29

SEE ALSO

31       ERR_get_error(3), RSA_generate_key(3), RSA_new_method(3)
32
34       Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
35
36       Licensed under the OpenSSL license (the "License").  You may not use
37       this file except in compliance with the License.  You can obtain a copy
38       in the file LICENSE in the source distribution or at
39       <https://www.openssl.org/source/license.html>.
40
41
42
431.1.1d                            2019-10-03                        RSA_NEW(3)
Impressum