5 RSA_size, RSA_bits - get RSA modulus size
9 #include <openssl/rsa.h>
11 int RSA_size(const RSA *rsa);
13 int RSA_bits(const RSA *rsa);
17 RSA_size() returns the RSA modulus size in bytes. It can be used to
18 determine how much memory must be allocated for an RSA encrypted
21 RSA_bits() returns the number of significant bits.
23 B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
31 L<rsa(3)>, L<BN_num_bits(3)>
35 RSA_size() is available in all versions of SSLeay and OpenSSL.
36 RSA_bits() was added in OpenSSL 1.1.0.