RSA_size.pod 905 字节
Newer Older
U
Ulf Möller 已提交
1 2 3 4
=pod

=head1 NAME

5
RSA_size, RSA_bits - get RSA modulus size
U
Ulf Möller 已提交
6 7 8

=head1 SYNOPSIS

9
#include <openssl/rsa.h>
U
Ulf Möller 已提交
10

11 12 13
int RSA_size(const RSA *rsa);

int RSA_bits(const RSA *rsa);
U
Ulf Möller 已提交
14 15 16

=head1 DESCRIPTION

17
RSA_size() returns the RSA modulus size in bytes. It can be used to
U
Ulf Möller 已提交
18 19 20
determine how much memory must be allocated for an RSA encrypted
value.

21 22 23
RSA_bits() returns the number of significant bits.

B<rsa> and B<rsa-E<gt>n> must not be B<NULL>.
U
Ulf Möller 已提交
24 25 26

=head1 RETURN VALUE

27
The size.
U
Ulf Möller 已提交
28 29 30

=head1 SEE ALSO

R
Rich Salz 已提交
31
L<rsa(3)>, L<BN_num_bits(3)>
U
Ulf Möller 已提交
32 33 34

=head1 HISTORY

35
RSA_bits() was added in OpenSSL 1.1.0.
U
Ulf Möller 已提交
36 37

=cut
R
Rich Salz 已提交
38 39 40 41 42 43 44 45 46 47 48

=head1 COPYRIGHT

Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the OpenSSL license (the "License").  You may not use
this file except in compliance with the License.  You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.

=cut