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.
21

RETURN VALUES

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

SEE ALSO

30       ERR_get_error(3), rsa(3), RSA_generate_key(3), RSA_new_method(3)
31

HISTORY

33       RSA_new() and RSA_free() are available in all versions of SSLeay and
34       OpenSSL.
35
36
37
381.0.2o                            2020-08-01                        RSA_new(3)
Impressum