diff options
| author | schwarze <> | 2018-02-19 12:14:11 +0000 |
|---|---|---|
| committer | schwarze <> | 2018-02-19 12:14:11 +0000 |
| commit | 2b64afefbbccc1cbbef6b58ee52328a60f5a0654 (patch) | |
| tree | 16c5486a0bcd4e7de662873a6ce1a149304fae05 /src/lib/libc | |
| parent | 9a97d9713d9670973e32abe057419c81c23c23e6 (diff) | |
| download | openbsd-2b64afefbbccc1cbbef6b58ee52328a60f5a0654.tar.gz openbsd-2b64afefbbccc1cbbef6b58ee52328a60f5a0654.tar.bz2 openbsd-2b64afefbbccc1cbbef6b58ee52328a60f5a0654.zip | |
In rsa.h rev. 1.33 2018/02/18 12:52:13, tb@ provided RSA_bits(3).
Merge the documentation; from Kurt Roeckx <kurt at roeckx dot be>
via OpenSSL commit 26c79d56 Apr 18 12:23:12 2015 +0200.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/RSA_size.3 | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/RSA_size.3 b/src/lib/libcrypto/man/RSA_size.3 index ffed9a109e..018a328078 100644 --- a/src/lib/libcrypto/man/RSA_size.3 +++ b/src/lib/libcrypto/man/RSA_size.3 | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | .\" $OpenBSD: RSA_size.3,v 1.5 2018/02/17 16:59:48 schwarze Exp $ | 1 | .\" $OpenBSD: RSA_size.3,v 1.6 2018/02/19 12:14:11 schwarze Exp $ |
| 2 | .\" OpenSSL 5bf73873 Aug 5 16:27:01 2002 +0000 | 2 | .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and |
| 5 | .\" Kurt Roeckx <kurt@roeckx.be>. | ||
| 5 | .\" Copyright (c) 2000, 2002, 2015 The OpenSSL Project. All rights reserved. | 6 | .\" Copyright (c) 2000, 2002, 2015 The OpenSSL Project. All rights reserved. |
| 6 | .\" | 7 | .\" |
| 7 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without |
| @@ -48,22 +49,31 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 51 | .\" |
| 51 | .Dd $Mdocdate: February 17 2018 $ | 52 | .Dd $Mdocdate: February 19 2018 $ |
| 52 | .Dt RSA_SIZE 3 | 53 | .Dt RSA_SIZE 3 |
| 53 | .Os | 54 | .Os |
| 54 | .Sh NAME | 55 | .Sh NAME |
| 55 | .Nm RSA_size | 56 | .Nm RSA_size , |
| 56 | .Nd get RSA modulus size | 57 | .Nm RSA_bits |
| 58 | .Nd get the RSA modulus size | ||
| 57 | .Sh SYNOPSIS | 59 | .Sh SYNOPSIS |
| 58 | .In openssl/rsa.h | 60 | .In openssl/rsa.h |
| 59 | .Ft int | 61 | .Ft int |
| 60 | .Fo RSA_size | 62 | .Fo RSA_size |
| 61 | .Fa "const RSA *rsa" | 63 | .Fa "const RSA *rsa" |
| 62 | .Fc | 64 | .Fc |
| 65 | .Ft int | ||
| 66 | .Fo RSA_bits | ||
| 67 | .Fa "const RSA *rsa" | ||
| 68 | .Fc | ||
| 63 | .Sh DESCRIPTION | 69 | .Sh DESCRIPTION |
| 64 | This function returns the RSA modulus size in bytes. | 70 | .Fn RSA_size |
| 65 | It can be used to determine how much memory must be allocated for an RSA | 71 | returns the RSA modulus size in bytes. |
| 66 | encrypted value. | 72 | It can be used to determine how much memory must be allocated for |
| 73 | an RSA encrypted value. | ||
| 74 | .Pp | ||
| 75 | .Fn RSA_bits | ||
| 76 | returns the number of significant bits. | ||
| 67 | .Pp | 77 | .Pp |
| 68 | .Fa rsa | 78 | .Fa rsa |
| 69 | and | 79 | and |
| @@ -71,10 +81,14 @@ and | |||
| 71 | must not be | 81 | must not be |
| 72 | .Dv NULL . | 82 | .Dv NULL . |
| 73 | .Sh RETURN VALUES | 83 | .Sh RETURN VALUES |
| 74 | The size in bytes. | 84 | The size. |
| 75 | .Sh SEE ALSO | 85 | .Sh SEE ALSO |
| 86 | .Xr BN_num_bits 3 , | ||
| 76 | .Xr RSA_get0_key 3 , | 87 | .Xr RSA_get0_key 3 , |
| 77 | .Xr RSA_new 3 | 88 | .Xr RSA_new 3 |
| 78 | .Sh HISTORY | 89 | .Sh HISTORY |
| 79 | .Fn RSA_size | 90 | .Fn RSA_size |
| 80 | is available in all versions of SSLeay and OpenSSL. | 91 | is available in all versions of SSLeay and OpenSSL. |
| 92 | .Pp | ||
| 93 | .Fn RSA_bits | ||
| 94 | first appeared in OpenSSL 1.1.0. | ||
