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

NAME

6       RSA_new, RSA_free - allocate and free RSA objects
7

SYNOPSIS

9        #include <openssl/rsa.h>
10
11       The following functions have been deprecated since OpenSSL 3.0, and can
12       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
13       version value, see openssl_user_macros(7):
14
15        RSA *RSA_new(void);
16
17        void RSA_free(RSA *rsa);
18

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

35       ERR_get_error(3), RSA_generate_key(3), RSA_new_method(3)
36

HISTORY

38       All functions described here were deprecated in OpenSSL 3.0.  For
39       replacement see EVP_PKEY-RSA(7).
40
42       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
43
44       Licensed under the Apache License 2.0 (the "License").  You may not use
45       this file except in compliance with the License.  You can obtain a copy
46       in the file LICENSE in the source distribution or at
47       <https://www.openssl.org/source/license.html>.
48
49
50
513.0.5                             2022-11-01                    RSA_NEW(3ossl)
Impressum