1RSA_size(3) OpenSSL RSA_size(3)
23
4
NAME
6RSA_size - get RSA modulus size
7
SYNOPSIS
9#include <openssl/rsa.h>
1011
int RSA_size(const RSA *rsa);
12
DESCRIPTION
14This function returns the RSA modulus size in bytes. It can be used to
15determine how much memory must be allocated for an RSA encrypted value.
1617
rsa->n must not be NULL.
18
RETURN VALUE
20The size in bytes.
21
SEE ALSO
23rsa(3)
24
HISTORY
26RSA_size() is available in all versions of SSLeay and OpenSSL.
2728
29
30
1.0.2o 2019-09-10 RSA_size(3)