skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: CRYPTO Application Programming Interface (API)... CRYPTO Application Programming Interface (API)...
go to previous page: RSA_sign_ASN1_OCTET_STRING RSA_sign_ASN1_OCTET_STRING
go to next page: SHA1SHA1
end of book navigation links


RSA_size
Description
Return Value
See Also
History
 

NAME

RSA_size - get RSA modulus size

Synopsis  

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


return to top 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 to top RETURN VALUE  

The size in bytes.


return to top SEE ALSO  

rsa(3)


return to top HISTORY  

RSA_size() is available in all versions of SSLeay and OpenSSL.
go to previous page: RSA_sign_ASN1_OCTET_STRING RSA_sign_ASN1_OCTET_STRING
go to next page: SHA1SHA1