Blame doc/man3/RSA_size.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/rsa.h>
Packit c4476c
Packit c4476c
 int RSA_size(const RSA *rsa);
Packit c4476c
Packit c4476c
 int RSA_bits(const RSA *rsa);
Packit c4476c
Packit c4476c
 int RSA_security_bits(const RSA *rsa)
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
RSA_size() returns the RSA modulus size in bytes. It can be used to
Packit c4476c
determine how much memory must be allocated for an RSA encrypted
Packit c4476c
value.
Packit c4476c
Packit c4476c
RSA_bits() returns the number of significant bits.
Packit c4476c
Packit c4476c
B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
Packit c4476c
Packit c4476c
RSA_security_bits() returns the number of security bits of the given B<rsa>
Packit c4476c
key. See L<BN_security_bits(3)>.
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
RSA_size() returns the size of modulus in bytes.
Packit c4476c
Packit c4476c
DSA_bits() returns the number of bits in the key.
Packit c4476c
Packit c4476c
RSA_security_bits() returns the number of security bits.
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<BN_num_bits(3)>
Packit c4476c
Packit c4476c
=head1 HISTORY
Packit c4476c
Packit c4476c
The RSA_bits() function was added in OpenSSL 1.1.0.
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut