1RSA_size(3)                         OpenSSL                        RSA_size(3)
2
3
4

NAME

6       RSA_size - get RSA modulus size
7

SYNOPSIS

9        #include <openssl/rsa.h>
10
11        int RSA_size(const RSA *rsa);
12

DESCRIPTION

14       This function returns the RSA modulus size in bytes. It can be used to
15       determine how much memory must be allocated for an RSA encrypted value.
16
17       rsa->n must not be NULL.
18

RETURN VALUE

20       The size in bytes.
21

SEE ALSO

23       rsa(3)
24

HISTORY

26       RSA_size() is available in all versions of SSLeay and OpenSSL.
27
28
29
301.0.2o                            2018-03-27                       RSA_size(3)
Impressum