1=pod 2 3=head1 NAME 4 5RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits 6 7=head1 SYNOPSIS 8 9 #include <openssl/rsa.h> 10 11 int RSA_size(const RSA *rsa); 12 13 int RSA_bits(const RSA *rsa); 14 15 int RSA_security_bits(const RSA *rsa) 16 17=head1 DESCRIPTION 18 19RSA_size() returns the RSA modulus size in bytes. It can be used to 20determine how much memory must be allocated for an RSA encrypted 21value. 22 23RSA_bits() returns the number of significant bits. 24 25B<rsa> and B<rsa-E<gt>n> must not be B<NULL>. 26 27RSA_security_bits() returns the number of security bits of the given B<rsa> 28key. See L<BN_security_bits(3)>. 29 30=head1 RETURN VALUES 31 32RSA_size() returns the size of modulus in bytes. 33 34DSA_bits() returns the number of bits in the key. 35 36RSA_security_bits() returns the number of security bits. 37 38=head1 SEE ALSO 39 40L<BN_num_bits(3)> 41 42=head1 HISTORY 43 44The RSA_bits() function was added in OpenSSL 1.1.0. 45 46=head1 COPYRIGHT 47 48Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved. 49 50Licensed under the OpenSSL license (the "License"). You may not use 51this file except in compliance with the License. You can obtain a copy 52in the file LICENSE in the source distribution or at 53L<https://www.openssl.org/source/license.html>. 54 55=cut 56