RSA_size - get RSA modulus size
#include <openssl/rsa.h> int RSA_size(const RSA *rsa);
RSA_size(3openssl) OpenSSL RSA_size(3openssl) NAME RSA_size - get RSA modulus size SYNOPSIS #include <openssl/rsa.h> int RSA_size(const RSA *rsa); DESCRIPTION This function returns the RSA modulus size in bytes. It can be used to determine how much memory must be allocated for an RSA encrypted value. rsa->n must not be NULL. RETURN VALUE The size in bytes. ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+--------------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+--------------------------+ |Availability | library/security/openssl | +---------------+--------------------------+ |Stability | Pass-through uncommitted | +---------------+--------------------------+ SEE ALSO rsa(3) HISTORY RSA_size() is available in all versions of SSLeay and OpenSSL. NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from https://www.openssl.org/source/openssl-1.0.2ze.tar.gz. Further information about this software can be found on the open source community website at https://www.openssl.org/. 1.0.2ze 2022-05-03 RSA_size(3openssl)