diff options
Diffstat (limited to 'crypto/rsa/rsa_crpt.c')
-rw-r--r-- | crypto/rsa/rsa_crpt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_crpt.c b/crypto/rsa/rsa_crpt.c index 5220b7d068..3c4fd67714 100644 --- a/crypto/rsa/rsa_crpt.c +++ b/crypto/rsa/rsa_crpt.c @@ -64,6 +64,11 @@ #include <openssl/rsa.h> #include <openssl/rand.h> +int RSA_bits(const RSA *r) +{ + return (BN_num_bits(r->n)); +} + int RSA_size(const RSA *r) { return (BN_num_bytes(r->n)); |