RSA_bits

Return the bit length of an RSA modulus (deprecated; use EVP_PKEY_get_bits).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_bits(RSA const* rsa);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Number of significant bits in the modulus n.

Parameters

NameDescription
rsaRSA key to query.