1RSA_SIZE(3)                         OpenSSL                        RSA_SIZE(3)
2
3
4

NAME

6       RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or
7       security bits
8

SYNOPSIS

10        #include <openssl/rsa.h>
11
12        int RSA_size(const RSA *rsa);
13
14        int RSA_bits(const RSA *rsa);
15
16        int RSA_security_bits(const RSA *rsa)
17

DESCRIPTION

19       RSA_size() returns the RSA modulus size in bytes. It can be used to
20       determine how much memory must be allocated for an RSA encrypted value.
21
22       RSA_bits() returns the number of significant bits.
23
24       rsa and rsa->n must not be NULL.
25
26       RSA_security_bits() returns the number of security bits of the given
27       rsa key. See BN_security_bits(3).
28

RETURN VALUES

30       RSA_size() returns the size of modulus in bytes.
31
32       DSA_bits() returns the number of bits in the key.
33
34       RSA_security_bits() returns the number of security bits.
35

SEE ALSO

37       BN_num_bits(3)
38

HISTORY

40       The RSA_bits() function was added in OpenSSL 1.1.0.
41
43       Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
44
45       Licensed under the OpenSSL license (the "License").  You may not use
46       this file except in compliance with the License.  You can obtain a copy
47       in the file LICENSE in the source distribution or at
48       <https://www.openssl.org/source/license.html>.
49
50
51
521.1.1k                            2021-03-26                       RSA_SIZE(3)
Impressum