blob: 8b9a4d055237f71f9de0b77a633e130aff561d22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
.Dd $Mdocdate: November 4 2016 $
.Dt RSA_SIZE 3
.Os
.Sh NAME
.Nm RSA_size
.Nd get RSA modulus size
.Sh SYNOPSIS
.In openssl/rsa.h
.Ft int
.Fo RSA_size
.Fa "const RSA *rsa"
.Fc
.Sh DESCRIPTION
This function returns the RSA modulus size in bytes.
It can be used to determine how much memory must be allocated for an RSA
encrypted value.
.Pp
.Fa rsa->n
must not be
.Dv NULL .
.Sh RETURN VALUE
The size in bytes.
.Sh SEE ALSO
.Xr rsa 3
.Sh HISTORY
.Fn RSA_size
is available in all versions of SSLeay and OpenSSL.
|