diff options
Diffstat (limited to 'src/lib/libcrypto/man/RSA_size.3')
| -rw-r--r-- | src/lib/libcrypto/man/RSA_size.3 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/RSA_size.3 b/src/lib/libcrypto/man/RSA_size.3 new file mode 100644 index 0000000000..8b9a4d0552 --- /dev/null +++ b/src/lib/libcrypto/man/RSA_size.3 | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | .Dd $Mdocdate: November 4 2016 $ | ||
| 2 | .Dt RSA_SIZE 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm RSA_size | ||
| 6 | .Nd get RSA modulus size | ||
| 7 | .Sh SYNOPSIS | ||
| 8 | .In openssl/rsa.h | ||
| 9 | .Ft int | ||
| 10 | .Fo RSA_size | ||
| 11 | .Fa "const RSA *rsa" | ||
| 12 | .Fc | ||
| 13 | .Sh DESCRIPTION | ||
| 14 | This function returns the RSA modulus size in bytes. | ||
| 15 | It can be used to determine how much memory must be allocated for an RSA | ||
| 16 | encrypted value. | ||
| 17 | .Pp | ||
| 18 | .Fa rsa->n | ||
| 19 | must not be | ||
| 20 | .Dv NULL . | ||
| 21 | .Sh RETURN VALUE | ||
| 22 | The size in bytes. | ||
| 23 | .Sh SEE ALSO | ||
| 24 | .Xr rsa 3 | ||
| 25 | .Sh HISTORY | ||
| 26 | .Fn RSA_size | ||
| 27 | is available in all versions of SSLeay and OpenSSL. | ||
