summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man
diff options
context:
space:
mode:
authorschwarze <>2021-10-19 12:03:46 +0000
committerschwarze <>2021-10-19 12:03:46 +0000
commit00a65e26fec41d2608dd0c0ee19731c9dd5c8606 (patch)
tree5f115e9acf000b6a749f7e0c2cd4ab189ddcaba6 /src/lib/libcrypto/man
parent88ece22af090d1457e2b4b37ac574d230b42198c (diff)
downloadopenbsd-00a65e26fec41d2608dd0c0ee19731c9dd5c8606.tar.gz
openbsd-00a65e26fec41d2608dd0c0ee19731c9dd5c8606.tar.bz2
openbsd-00a65e26fec41d2608dd0c0ee19731c9dd5c8606.zip
document i2d_PrivateKey_bio(3) and i2d_PrivateKey_fp(3)
Diffstat (limited to 'src/lib/libcrypto/man')
-rw-r--r--src/lib/libcrypto/man/d2i_PrivateKey.349
1 files changed, 37 insertions, 12 deletions
diff --git a/src/lib/libcrypto/man/d2i_PrivateKey.3 b/src/lib/libcrypto/man/d2i_PrivateKey.3
index 588bda8791..864541430d 100644
--- a/src/lib/libcrypto/man/d2i_PrivateKey.3
+++ b/src/lib/libcrypto/man/d2i_PrivateKey.3
@@ -1,10 +1,10 @@
1.\" $OpenBSD: d2i_PrivateKey.3,v 1.9 2019/06/06 01:06:59 schwarze Exp $ 1.\" $OpenBSD: d2i_PrivateKey.3,v 1.10 2021/10/19 12:03:46 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" full merge up to: OpenSSL b0edda11 Mar 20 13:00:17 2018 +0000
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
5.\" The changes are covered by the following Copyright and license: 5.\" The changes are covered by the following Copyright and license:
6.\" 6.\"
7.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> 7.\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org>
8.\" 8.\"
9.\" Permission to use, copy, modify, and distribute this software for any 9.\" Permission to use, copy, modify, and distribute this software for any
10.\" purpose with or without fee is hereby granted, provided that the above 10.\" purpose with or without fee is hereby granted, provided that the above
@@ -65,15 +65,17 @@
65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
66.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
67.\" 67.\"
68.Dd $Mdocdate: June 6 2019 $ 68.Dd $Mdocdate: October 19 2021 $
69.Dt D2I_PRIVATEKEY 3 69.Dt D2I_PRIVATEKEY 3
70.Os 70.Os
71.Sh NAME 71.Sh NAME
72.Nm d2i_PrivateKey , 72.Nm d2i_PrivateKey ,
73.Nm d2i_AutoPrivateKey , 73.Nm d2i_AutoPrivateKey ,
74.Nm i2d_PrivateKey ,
75.Nm d2i_PrivateKey_bio , 74.Nm d2i_PrivateKey_bio ,
76.Nm d2i_PrivateKey_fp , 75.Nm d2i_PrivateKey_fp ,
76.Nm i2d_PrivateKey ,
77.Nm i2d_PrivateKey_bio ,
78.Nm i2d_PrivateKey_fp ,
77.Nm i2d_PKCS8PrivateKeyInfo_bio , 79.Nm i2d_PKCS8PrivateKeyInfo_bio ,
78.Nm i2d_PKCS8PrivateKeyInfo_fp , 80.Nm i2d_PKCS8PrivateKeyInfo_fp ,
79.Nm d2i_PublicKey , 81.Nm d2i_PublicKey ,
@@ -94,11 +96,6 @@
94.Fa "const unsigned char **des_in" 96.Fa "const unsigned char **des_in"
95.Fa "long length" 97.Fa "long length"
96.Fc 98.Fc
97.Ft int
98.Fo i2d_PrivateKey
99.Fa "EVP_PKEY *val_in"
100.Fa "unsigned char **des_out"
101.Fc
102.Ft EVP_PKEY * 99.Ft EVP_PKEY *
103.Fo d2i_PrivateKey_bio 100.Fo d2i_PrivateKey_bio
104.Fa "BIO *in_bio" 101.Fa "BIO *in_bio"
@@ -110,6 +107,21 @@
110.Fa "EVP_PKEY **val_out" 107.Fa "EVP_PKEY **val_out"
111.Fc 108.Fc
112.Ft int 109.Ft int
110.Fo i2d_PrivateKey
111.Fa "EVP_PKEY *val_in"
112.Fa "unsigned char **des_out"
113.Fc
114.Ft int
115.Fo i2d_PrivateKey_bio
116.Fa "BIO *out_bio"
117.Fa "EVP_PKEY *val_in"
118.Fc
119.Ft int
120.Fo i2d_PrivateKey_fp
121.Fa "FILE *out_fp"
122.Fa "EVP_PKEY *val_in"
123.Fc
124.Ft int
113.Fo i2d_PKCS8PrivateKeyInfo_bio 125.Fo i2d_PKCS8PrivateKeyInfo_bio
114.Fa "BIO *out_bio" 126.Fa "BIO *out_bio"
115.Fa "EVP_PKEY *val_in" 127.Fa "EVP_PKEY *val_in"
@@ -174,6 +186,17 @@ that key type, the PKCS#8 unencrypted
174.Vt PrivateKeyInfo 186.Vt PrivateKeyInfo
175format. 187format.
176.Pp 188.Pp
189.Fn i2d_PrivateKey_bio
190and
191.Fn i2d_PrivateKey_fp
192are similar to
193.Fn i2d_PrivateKey
194except that they write to a
195.Vt BIO
196or
197.Vt FILE
198pointer and use a different convention for their return values.
199.Pp
177.Fn i2d_PKCS8PrivateKeyInfo_bio 200.Fn i2d_PKCS8PrivateKeyInfo_bio
178and 201and
179.Fn i2d_PKCS8PrivateKeyInfo_fp 202.Fn i2d_PKCS8PrivateKeyInfo_fp
@@ -249,7 +272,9 @@ and
249return the number of bytes successfully encoded or a negative value if 272return the number of bytes successfully encoded or a negative value if
250an error occurs. 273an error occurs.
251.Pp 274.Pp
252.Fn i2d_PKCS8PrivateKeyInfo_bio 275.Fn i2d_PrivateKey_bio ,
276.Fn i2d_PrivateKey_fp ,
277.Fn i2d_PKCS8PrivateKeyInfo_bio ,
253and 278and
254.Fn i2d_PKCS8PrivateKeyInfo_fp 279.Fn i2d_PKCS8PrivateKeyInfo_fp
255return 1 for success or 0 if an error occurs. 280return 1 for success or 0 if an error occurs.
@@ -277,8 +302,8 @@ first appeared in SSLeay 0.6.0 and have been available since
277.Pp 302.Pp
278.Fn d2i_AutoPrivateKey , 303.Fn d2i_AutoPrivateKey ,
279.Fn d2i_PrivateKey_bio , 304.Fn d2i_PrivateKey_bio ,
280.Fn i2d_PrivateKey_bio ,
281.Fn d2i_PrivateKey_fp , 305.Fn d2i_PrivateKey_fp ,
306.Fn i2d_PrivateKey_bio ,
282.Fn i2d_PrivateKey_fp , 307.Fn i2d_PrivateKey_fp ,
283.Fn i2d_PKCS8PrivateKeyInfo_bio , 308.Fn i2d_PKCS8PrivateKeyInfo_bio ,
284and 309and