summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-02-19 12:14:11 +0000
committerschwarze <>2018-02-19 12:14:11 +0000
commitdde57d4871f890e72012d945b908e09282cc81ce (patch)
tree16c5486a0bcd4e7de662873a6ce1a149304fae05 /src
parent153b5f3b02a05d7f9e5827221a67b096929d7b51 (diff)
downloadopenbsd-dde57d4871f890e72012d945b908e09282cc81ce.tar.gz
openbsd-dde57d4871f890e72012d945b908e09282cc81ce.tar.bz2
openbsd-dde57d4871f890e72012d945b908e09282cc81ce.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 'src')
-rw-r--r--src/lib/libcrypto/man/RSA_size.334
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
64This function returns the RSA modulus size in bytes. 70.Fn RSA_size
65It can be used to determine how much memory must be allocated for an RSA 71returns the RSA modulus size in bytes.
66encrypted value. 72It can be used to determine how much memory must be allocated for
73an RSA encrypted value.
74.Pp
75.Fn RSA_bits
76returns the number of significant bits.
67.Pp 77.Pp
68.Fa rsa 78.Fa rsa
69and 79and
@@ -71,10 +81,14 @@ and
71must not be 81must not be
72.Dv NULL . 82.Dv NULL .
73.Sh RETURN VALUES 83.Sh RETURN VALUES
74The size in bytes. 84The 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
80is available in all versions of SSLeay and OpenSSL. 91is available in all versions of SSLeay and OpenSSL.
92.Pp
93.Fn RSA_bits
94first appeared in OpenSSL 1.1.0.