VMS: tell the C compiler to use the ISO C94 standard
[openssl.git] / doc / man3 / RSA_size.pod
1 =pod
2
3 =head1 NAME
4
5 RSA_size, RSA_bits - get RSA modulus size
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 =head1 DESCRIPTION
16
17 RSA_size() returns the RSA modulus size in bytes. It can be used to
18 determine how much memory must be allocated for an RSA encrypted
19 value.
20
21 RSA_bits() returns the number of significant bits.
22
23 B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
24
25 =head1 RETURN VALUE
26
27 The size.
28
29 =head1 SEE ALSO
30
31 L<BN_num_bits(3)>
32
33 =head1 HISTORY
34
35 RSA_bits() was added in OpenSSL 1.1.0.
36
37 =head1 COPYRIGHT
38
39 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
40
41 Licensed under the OpenSSL license (the "License").  You may not use
42 this file except in compliance with the License.  You can obtain a copy
43 in the file LICENSE in the source distribution or at
44 L<https://www.openssl.org/source/license.html>.
45
46 =cut