summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3
diff options
context:
space:
mode:
authorschwarze <>2018-02-17 16:59:48 +0000
committerschwarze <>2018-02-17 16:59:48 +0000
commit3bbb479de12bd8e6e1b3f23565ef278bafa57d51 (patch)
tree24af7c3335ede1f4046a631a9ba506a3c96762e5 /src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3
parentc65f1d5336d2fc48bd39e9eec37ea975c4b3d24d (diff)
downloadopenbsd-3bbb479de12bd8e6e1b3f23565ef278bafa57d51.tar.gz
openbsd-3bbb479de12bd8e6e1b3f23565ef278bafa57d51.tar.bz2
openbsd-3bbb479de12bd8e6e1b3f23565ef278bafa57d51.zip
Merge documentation for {DH,DSA}_get0_{key,pqg}(3),
EVP_PKEY_get0_{DH,DSA,RSA}(3), and RSA_{g,s}et0_key(3) that tb@ just provided.
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_set1_RSA.341
1 files changed, 35 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3 b/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3
index 851184ae3c..e897dacf68 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_set1_RSA.3
@@ -1,5 +1,6 @@
1.\" $OpenBSD: EVP_PKEY_set1_RSA.3,v 1.5 2016/12/11 12:21:48 schwarze Exp $ 1.\" $OpenBSD: EVP_PKEY_set1_RSA.3,v 1.6 2018/02/17 16:59:48 schwarze Exp $
2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 2.\" full merge up to: OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400
3.\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 4.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2002, 2014, 2016 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2002, 2014, 2016 The OpenSSL Project. All rights reserved.
@@ -48,7 +49,7 @@
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: December 11 2016 $ 52.Dd $Mdocdate: February 17 2018 $
52.Dt EVP_PKEY_SET1_RSA 3 53.Dt EVP_PKEY_SET1_RSA 3
53.Os 54.Os
54.Sh NAME 55.Sh NAME
@@ -60,6 +61,9 @@
60.Nm EVP_PKEY_get1_DSA , 61.Nm EVP_PKEY_get1_DSA ,
61.Nm EVP_PKEY_get1_DH , 62.Nm EVP_PKEY_get1_DH ,
62.Nm EVP_PKEY_get1_EC_KEY , 63.Nm EVP_PKEY_get1_EC_KEY ,
64.Nm EVP_PKEY_get0_RSA ,
65.Nm EVP_PKEY_get0_DSA ,
66.Nm EVP_PKEY_get0_DH ,
63.Nm EVP_PKEY_assign_RSA , 67.Nm EVP_PKEY_assign_RSA ,
64.Nm EVP_PKEY_assign_DSA , 68.Nm EVP_PKEY_assign_DSA ,
65.Nm EVP_PKEY_assign_DH , 69.Nm EVP_PKEY_assign_DH ,
@@ -106,6 +110,18 @@
106.Fo EVP_PKEY_get1_EC_KEY 110.Fo EVP_PKEY_get1_EC_KEY
107.Fa "EVP_PKEY *pkey" 111.Fa "EVP_PKEY *pkey"
108.Fc 112.Fc
113.Ft RSA *
114.Fo EVP_PKEY_get0_RSA
115.Fa "EVP_PKEY *pkey"
116.Fc
117.Ft DSA *
118.Fo EVP_PKEY_get0_DSA
119.Fa "EVP_PKEY *pkey"
120.Fc
121.Ft DH *
122.Fo EVP_PKEY_get0_DH
123.Fa "EVP_PKEY *pkey"
124.Fc
109.Ft int 125.Ft int
110.Fo EVP_PKEY_assign_RSA 126.Fo EVP_PKEY_assign_RSA
111.Fa "EVP_PKEY *pkey" 127.Fa "EVP_PKEY *pkey"
@@ -155,11 +171,18 @@ to
155and 171and
156.Fn EVP_PKEY_get1_EC_KEY 172.Fn EVP_PKEY_get1_EC_KEY
157return the key referenced in 173return the key referenced in
158.Fa pkey 174.Fa pkey ,
159or 175incrementing its reference count by 1, or
160.Dv NULL 176.Dv NULL
161if the key is not of the correct type. 177if the key is not of the correct type.
162.Pp 178.Pp
179.Fn EVP_PKEY_get0_RSA ,
180.Fn EVP_PKEY_get0_DSA ,
181and
182.Fn EVP_PKEY_get0_DH
183are identical except that they do not increment the reference count.
184Consequently, the returned key must not be freed by the caller.
185.Pp
163.Fn EVP_PKEY_assign_RSA , 186.Fn EVP_PKEY_assign_RSA ,
164.Fn EVP_PKEY_assign_DSA , 187.Fn EVP_PKEY_assign_DSA ,
165.Fn EVP_PKEY_assign_DH , 188.Fn EVP_PKEY_assign_DH ,
@@ -235,8 +258,11 @@ return 1 for success or 0 for failure.
235.Fn EVP_PKEY_get1_RSA , 258.Fn EVP_PKEY_get1_RSA ,
236.Fn EVP_PKEY_get1_DSA , 259.Fn EVP_PKEY_get1_DSA ,
237.Fn EVP_PKEY_get1_DH , 260.Fn EVP_PKEY_get1_DH ,
261.Fn EVP_PKEY_get1_EC_KEY ,
262.Fn EVP_PKEY_get0_RSA ,
263.Fn EVP_PKEY_get0_DSA ,
238and 264and
239.Fn EVP_PKEY_get1_EC_KEY 265.Fn EVP_PKEY_get0_DH
240return the referenced key or 266return the referenced key or
241.Dv NULL 267.Dv NULL
242if an error occurred. 268if an error occurred.
@@ -258,5 +284,8 @@ return a key type or
258.Dv EVP_PKEY_NONE ) 284.Dv EVP_PKEY_NONE )
259on error. 285on error.
260.Sh SEE ALSO 286.Sh SEE ALSO
287.Xr DH_new 3 ,
288.Xr DSA_new 3 ,
289.Xr EC_KEY_new 3 ,
261.Xr EVP_PKEY_new 3 , 290.Xr EVP_PKEY_new 3 ,
262.Xr RSA_new 3 291.Xr RSA_new 3