summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/d2i_RSAPublicKey.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/d2i_RSAPublicKey.3')
-rw-r--r--src/lib/libcrypto/man/d2i_RSAPublicKey.393
1 files changed, 91 insertions, 2 deletions
diff --git a/src/lib/libcrypto/man/d2i_RSAPublicKey.3 b/src/lib/libcrypto/man/d2i_RSAPublicKey.3
index 72530c7dac..0ce5f31aa5 100644
--- a/src/lib/libcrypto/man/d2i_RSAPublicKey.3
+++ b/src/lib/libcrypto/man/d2i_RSAPublicKey.3
@@ -1,6 +1,56 @@
1.\" $OpenBSD: d2i_RSAPublicKey.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: d2i_RSAPublicKey.3,v 1.3 2016/12/05 20:36:19 schwarze Exp $
2.\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400
2.\" 3.\"
3.Dd $Mdocdate: November 6 2016 $ 4.\" This file was written by Ulf Moeller <ulf@openssl.org> and
5.\" Dr. Stephen Henson <steve@openssl.org>.
6.\" Copyright (c) 2000, 2002, 2003, 2009, 2016 The OpenSSL Project.
7.\" All rights reserved.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\"
13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer.
15.\"
16.\" 2. Redistributions in binary form must reproduce the above copyright
17.\" notice, this list of conditions and the following disclaimer in
18.\" the documentation and/or other materials provided with the
19.\" distribution.
20.\"
21.\" 3. All advertising materials mentioning features or use of this
22.\" software must display the following acknowledgment:
23.\" "This product includes software developed by the OpenSSL Project
24.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
25.\"
26.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27.\" endorse or promote products derived from this software without
28.\" prior written permission. For written permission, please contact
29.\" openssl-core@openssl.org.
30.\"
31.\" 5. Products derived from this software may not be called "OpenSSL"
32.\" nor may "OpenSSL" appear in their names without prior written
33.\" permission of the OpenSSL Project.
34.\"
35.\" 6. Redistributions of any form whatsoever must retain the following
36.\" acknowledgment:
37.\" "This product includes software developed by the OpenSSL Project
38.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
39.\"
40.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
44.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\"
53.Dd $Mdocdate: December 5 2016 $
4.Dt D2I_RSAPUBLICKEY 3 54.Dt D2I_RSAPUBLICKEY 3
5.Os 55.Os
6.Sh NAME 56.Sh NAME
@@ -10,6 +60,10 @@
10.Nm i2d_RSAPrivateKey , 60.Nm i2d_RSAPrivateKey ,
11.Nm d2i_RSA_PUBKEY , 61.Nm d2i_RSA_PUBKEY ,
12.Nm i2d_RSA_PUBKEY , 62.Nm i2d_RSA_PUBKEY ,
63.Nm d2i_RSA_PUBKEY_bio ,
64.Nm d2i_RSA_PUBKEY_fp ,
65.Nm i2d_RSA_PUBKEY_bio ,
66.Nm i2d_RSA_PUBKEY_fp ,
13.Nm i2d_Netscape_RSA , 67.Nm i2d_Netscape_RSA ,
14.Nm d2i_Netscape_RSA 68.Nm d2i_Netscape_RSA
15.Nd RSA public and private key encoding functions 69.Nd RSA public and private key encoding functions
@@ -39,6 +93,26 @@
39.Fa "unsigned char **pp" 93.Fa "unsigned char **pp"
40.Fc 94.Fc
41.Ft RSA * 95.Ft RSA *
96.Fo d2i_RSA_PUBKEY_bio
97.Fa "BIO *bp"
98.Fa "RSA **a"
99.Fc
100.Ft RSA *
101.Fo d2i_RSA_PUBKEY_fp
102.Fa "FILE *fp"
103.Fa "RSA **a"
104.Fc
105.Ft int
106.Fo i2d_RSA_PUBKEY_bio
107.Fa "BIO *bp"
108.Fa "RSA *a"
109.Fc
110.Ft int
111.Fo i2d_RSA_PUBKEY_fp
112.Fa "FILE *fp"
113.Fa "RSA *a"
114.Fc
115.Ft RSA *
42.Fo d2i_RSAPrivateKey 116.Fo d2i_RSAPrivateKey
43.Fa "RSA **a" 117.Fa "RSA **a"
44.Fa "const unsigned char **pp" 118.Fa "const unsigned char **pp"
@@ -74,6 +148,21 @@ and
74decode and encode an RSA public key using a SubjectPublicKeyInfo 148decode and encode an RSA public key using a SubjectPublicKeyInfo
75(certificate public key) structure. 149(certificate public key) structure.
76.Pp 150.Pp
151.Fn d2i_RSA_PUBKEY_bio ,
152.Fn d2i_RSA_PUBKEY_fp ,
153.Fn i2d_RSA_PUBKEY_bio ,
154and
155.Fn i2d_RSA_PUBKEY_fp
156are similar to
157.Fn d2i_RSA_PUBKEY
158and
159.Fn i2d_RSA_PUBKEY
160except that they decode or encode using a
161.Vt BIO
162or
163.Vt FILE
164pointer.
165.Pp
77.Fn d2i_RSAPrivateKey , 166.Fn d2i_RSAPrivateKey ,
78.Fn i2d_RSAPrivateKey 167.Fn i2d_RSAPrivateKey
79decode and encode a PKCS#1 RSAPrivateKey structure. 168decode and encode a PKCS#1 RSAPrivateKey structure.