Last change
on this file since 85651 was 83916, checked in by vboxsync, 5 years ago |
openssl-1.1.1g: Applied and adjusted our OpenSSL changes to 1.1.1g. bugref:9719
|
File size:
1.2 KB
|
Line | |
---|
1 | =pod
|
---|
2 |
|
---|
3 | =head1 NAME
|
---|
4 |
|
---|
5 | RSA_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 |
|
---|
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
|
---|
21 | value.
|
---|
22 |
|
---|
23 | RSA_bits() returns the number of significant bits.
|
---|
24 |
|
---|
25 | B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
|
---|
26 |
|
---|
27 | RSA_security_bits() returns the number of security bits of the given B<rsa>
|
---|
28 | key. See L<BN_security_bits(3)>.
|
---|
29 |
|
---|
30 | =head1 RETURN VALUES
|
---|
31 |
|
---|
32 | RSA_size() returns the size of modulus in bytes.
|
---|
33 |
|
---|
34 | DSA_bits() returns the number of bits in the key.
|
---|
35 |
|
---|
36 | RSA_security_bits() returns the number of security bits.
|
---|
37 |
|
---|
38 | =head1 SEE ALSO
|
---|
39 |
|
---|
40 | L<BN_num_bits(3)>
|
---|
41 |
|
---|
42 | =head1 HISTORY
|
---|
43 |
|
---|
44 | The RSA_bits() function was added in OpenSSL 1.1.0.
|
---|
45 |
|
---|
46 | =head1 COPYRIGHT
|
---|
47 |
|
---|
48 | Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
---|
49 |
|
---|
50 | Licensed under the OpenSSL license (the "License"). You may not use
|
---|
51 | this file except in compliance with the License. You can obtain a copy
|
---|
52 | in the file LICENSE in the source distribution or at
|
---|
53 | L<https://www.openssl.org/source/license.html>.
|
---|
54 |
|
---|
55 | =cut
|
---|
Note:
See
TracBrowser
for help on using the repository browser.