diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 | 237 |
1 files changed, 235 insertions, 2 deletions
diff --git a/src/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 b/src/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 index 1ffafd69ed..4779417435 100644 --- a/src/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 +++ b/src/lib/libcrypto/man/PEM_read_bio_PrivateKey.3 | |||
@@ -1,6 +1,55 @@ | |||
1 | .\" $OpenBSD: PEM_read_bio_PrivateKey.3,v 1.3 2016/11/24 19:45:16 jmc Exp $ | 1 | .\" $OpenBSD: PEM_read_bio_PrivateKey.3,v 1.4 2016/11/28 21:50:44 schwarze Exp $ |
2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | ||
2 | .\" | 3 | .\" |
3 | .Dd $Mdocdate: November 24 2016 $ | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
5 | .\" Copyright (c) 2001-2004, 2009, 2013-2016 The OpenSSL Project. | ||
6 | .\" All rights reserved. | ||
7 | .\" | ||
8 | .\" Redistribution and use in source and binary forms, with or without | ||
9 | .\" modification, are permitted provided that the following conditions | ||
10 | .\" are met: | ||
11 | .\" | ||
12 | .\" 1. Redistributions of source code must retain the above copyright | ||
13 | .\" notice, this list of conditions and the following disclaimer. | ||
14 | .\" | ||
15 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
16 | .\" notice, this list of conditions and the following disclaimer in | ||
17 | .\" the documentation and/or other materials provided with the | ||
18 | .\" distribution. | ||
19 | .\" | ||
20 | .\" 3. All advertising materials mentioning features or use of this | ||
21 | .\" software must display the following acknowledgment: | ||
22 | .\" "This product includes software developed by the OpenSSL Project | ||
23 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
24 | .\" | ||
25 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
26 | .\" endorse or promote products derived from this software without | ||
27 | .\" prior written permission. For written permission, please contact | ||
28 | .\" openssl-core@openssl.org. | ||
29 | .\" | ||
30 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
31 | .\" nor may "OpenSSL" appear in their names without prior written | ||
32 | .\" permission of the OpenSSL Project. | ||
33 | .\" | ||
34 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
35 | .\" acknowledgment: | ||
36 | .\" "This product includes software developed by the OpenSSL Project | ||
37 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
38 | .\" | ||
39 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
40 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
41 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
42 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
43 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
44 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
45 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
46 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
47 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
48 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
51 | .\" | ||
52 | .Dd $Mdocdate: November 28 2016 $ | ||
4 | .Dt PEM_READ_BIO_PRIVATEKEY 3 | 53 | .Dt PEM_READ_BIO_PRIVATEKEY 3 |
5 | .Os | 54 | .Os |
6 | .Sh NAME | 55 | .Sh NAME |
@@ -12,6 +61,14 @@ | |||
12 | .Nm PEM_write_PKCS8PrivateKey , | 61 | .Nm PEM_write_PKCS8PrivateKey , |
13 | .Nm PEM_write_bio_PKCS8PrivateKey_nid , | 62 | .Nm PEM_write_bio_PKCS8PrivateKey_nid , |
14 | .Nm PEM_write_PKCS8PrivateKey_nid , | 63 | .Nm PEM_write_PKCS8PrivateKey_nid , |
64 | .Nm PEM_read_bio_PKCS8 , | ||
65 | .Nm PEM_read_PKCS8 , | ||
66 | .Nm PEM_write_bio_PKCS8 , | ||
67 | .Nm PEM_write_PKCS8 , | ||
68 | .Nm PEM_read_bio_PKCS8_PRIV_KEY_INFO , | ||
69 | .Nm PEM_read_PKCS8_PRIV_KEY_INFO , | ||
70 | .Nm PEM_write_bio_PKCS8_PRIV_KEY_INFO , | ||
71 | .Nm PEM_write_PKCS8_PRIV_KEY_INFO , | ||
15 | .Nm PEM_read_bio_PUBKEY , | 72 | .Nm PEM_read_bio_PUBKEY , |
16 | .Nm PEM_read_PUBKEY , | 73 | .Nm PEM_read_PUBKEY , |
17 | .Nm PEM_write_bio_PUBKEY , | 74 | .Nm PEM_write_bio_PUBKEY , |
@@ -44,6 +101,18 @@ | |||
44 | .Nm PEM_read_DHparams , | 101 | .Nm PEM_read_DHparams , |
45 | .Nm PEM_write_bio_DHparams , | 102 | .Nm PEM_write_bio_DHparams , |
46 | .Nm PEM_write_DHparams , | 103 | .Nm PEM_write_DHparams , |
104 | .Nm PEM_read_bio_ECPKParameters , | ||
105 | .Nm PEM_read_ECPKParameters , | ||
106 | .Nm PEM_write_bio_ECPKParameters , | ||
107 | .Nm PEM_write_ECPKParameters , | ||
108 | .Nm PEM_read_bio_ECPrivateKey , | ||
109 | .Nm PEM_read_ECPrivateKey , | ||
110 | .Nm PEM_write_bio_ECPrivateKey , | ||
111 | .Nm PEM_write_ECPrivateKey , | ||
112 | .Nm PEM_read_bio_EC_PUBKEY , | ||
113 | .Nm PEM_read_EC_PUBKEY , | ||
114 | .Nm PEM_write_bio_EC_PUBKEY , | ||
115 | .Nm PEM_write_EC_PUBKEY , | ||
47 | .Nm PEM_read_bio_X509 , | 116 | .Nm PEM_read_bio_X509 , |
48 | .Nm PEM_read_X509 , | 117 | .Nm PEM_read_X509 , |
49 | .Nm PEM_write_bio_X509 , | 118 | .Nm PEM_write_bio_X509 , |
@@ -147,6 +216,54 @@ | |||
147 | .Fa "pem_password_cb *cb" | 216 | .Fa "pem_password_cb *cb" |
148 | .Fa "void *u" | 217 | .Fa "void *u" |
149 | .Fc | 218 | .Fc |
219 | .Ft X509_SIG * | ||
220 | .Fo PEM_read_bio_PKCS8 | ||
221 | .Fa "BIO *bp" | ||
222 | .Fa "X509_SIG **x" | ||
223 | .Fa "pem_password_cb *cb" | ||
224 | .Fa "void *u" | ||
225 | .Fc | ||
226 | .Ft X509_SIG * | ||
227 | .Fo PEM_read_PKCS8 | ||
228 | .Fa "FILE *fp" | ||
229 | .Fa "X509_SIG **x" | ||
230 | .Fa "pem_password_cb *cb" | ||
231 | .Fa "void *u" | ||
232 | .Fc | ||
233 | .Ft int | ||
234 | .Fo PEM_write_bio_PKCS8 | ||
235 | .Fa "BIO *bp" | ||
236 | .Fa "X509_SIG *x" | ||
237 | .Fc | ||
238 | .Ft int | ||
239 | .Fo PEM_write_PKCS8 | ||
240 | .Fa "FILE *fp" | ||
241 | .Fa "X509_SIG *x" | ||
242 | .Fc | ||
243 | .Ft PKCS8_PRIV_KEY_INFO * | ||
244 | .Fo PEM_read_bio_PKCS8_PRIV_KEY_INFO | ||
245 | .Fa "BIO *bp" | ||
246 | .Fa "PKCS8_PRIV_KEY_INFO **x" | ||
247 | .Fa "pem_password_cb *cb" | ||
248 | .Fa "void *u" | ||
249 | .Fc | ||
250 | .Ft PKCS8_PRIV_KEY_INFO * | ||
251 | .Fo PEM_read_PKCS8_PRIV_KEY_INFO | ||
252 | .Fa "FILE *fp" | ||
253 | .Fa "PKCS8_PRIV_KEY_INFO **x" | ||
254 | .Fa "pem_password_cb *cb" | ||
255 | .Fa "void *u" | ||
256 | .Fc | ||
257 | .Ft int | ||
258 | .Fo PEM_write_bio_PKCS8_PRIV_KEY_INFO | ||
259 | .Fa "BIO *bp" | ||
260 | .Fa "PKCS8_PRIV_KEY_INFO *x" | ||
261 | .Fc | ||
262 | .Ft int | ||
263 | .Fo PEM_write_PKCS8_PRIV_KEY_INFO | ||
264 | .Fa "FILE *fp" | ||
265 | .Fa "PKCS8_PRIV_KEY_INFO *x" | ||
266 | .Fc | ||
150 | .Ft EVP_PKEY * | 267 | .Ft EVP_PKEY * |
151 | .Fo PEM_read_bio_PUBKEY | 268 | .Fo PEM_read_bio_PUBKEY |
152 | .Fa "BIO *bp" | 269 | .Fa "BIO *bp" |
@@ -359,6 +476,88 @@ | |||
359 | .Fa "FILE *fp" | 476 | .Fa "FILE *fp" |
360 | .Fa "DH *x" | 477 | .Fa "DH *x" |
361 | .Fc | 478 | .Fc |
479 | .Ft EC_GROUP * | ||
480 | .Fo PEM_read_bio_ECPKParameters | ||
481 | .Fa "BIO *bp" | ||
482 | .Fa "EC_GROUP **x" | ||
483 | .Fa "pem_password_cb *cb" | ||
484 | .Fa "void *u" | ||
485 | .Fc | ||
486 | .Ft EC_GROUP * | ||
487 | .Fo PEM_read_ECPKParameters | ||
488 | .Fa "FILE *fp" | ||
489 | .Fa "EC_GROUP **x" | ||
490 | .Fa "pem_password_cb *cb" | ||
491 | .Fa "void *u" | ||
492 | .Fc | ||
493 | .Ft int | ||
494 | .Fo PEM_write_bio_ECPKParameters | ||
495 | .Fa "BIO *bp" | ||
496 | .Fa "const EC_GROUP *x" | ||
497 | .Fc | ||
498 | .Ft int | ||
499 | .Fo PEM_write_ECPKParameters | ||
500 | .Fa "FILE *fp" | ||
501 | .Fa "const EC_GROUP *x" | ||
502 | .Fc | ||
503 | .Ft EC_KEY * | ||
504 | .Fo PEM_read_bio_ECPrivateKey | ||
505 | .Fa "BIO *bp" | ||
506 | .Fa "EC_KEY **key" | ||
507 | .Fa "pem_password_cb *cb" | ||
508 | .Fa "void *u" | ||
509 | .Fc | ||
510 | .Ft EC_KEY * | ||
511 | .Fo PEM_read_ECPrivateKey | ||
512 | .Fa "FILE *fp" | ||
513 | .Fa "EC_KEY **eckey" | ||
514 | .Fa "pem_password_cb *cb" | ||
515 | .Fa "void *u" | ||
516 | .Fc | ||
517 | .Ft int | ||
518 | .Fo PEM_write_bio_ECPrivateKey | ||
519 | .Fa "BIO *bp" | ||
520 | .Fa "EC_KEY *x" | ||
521 | .Fa "const EVP_CIPHER *enc" | ||
522 | .Fa "unsigned char *kstr" | ||
523 | .Fa "int klen" | ||
524 | .Fa "pem_password_cb *cb" | ||
525 | .Fa "void *u" | ||
526 | .Fc | ||
527 | .Ft int | ||
528 | .Fo PEM_write_ECPrivateKey | ||
529 | .Fa "FILE *fp" | ||
530 | .Fa "EC_KEY *x" | ||
531 | .Fa "const EVP_CIPHER *enc" | ||
532 | .Fa "unsigned char *kstr" | ||
533 | .Fa "int klen" | ||
534 | .Fa "pem_password_cb *cb" | ||
535 | .Fa "void *u" | ||
536 | .Fc | ||
537 | .Ft EC_KEY * | ||
538 | .Fo PEM_read_bio_EC_PUBKEY | ||
539 | .Fa "BIO *bp" | ||
540 | .Fa "EC_KEY **x" | ||
541 | .Fa "pem_password_cb *cb" | ||
542 | .Fa "void *u" | ||
543 | .Fc | ||
544 | .Ft EC_KEY * | ||
545 | .Fo PEM_read_EC_PUBKEY | ||
546 | .Fa "FILE *fp" | ||
547 | .Fa "EC_KEY **x" | ||
548 | .Fa "pem_password_cb *cb" | ||
549 | .Fa "void *u" | ||
550 | .Fc | ||
551 | .Ft int | ||
552 | .Fo PEM_write_bio_EC_PUBKEY | ||
553 | .Fa "BIO *bp" | ||
554 | .Fa "EC_KEY *x" | ||
555 | .Fc | ||
556 | .Ft int | ||
557 | .Fo PEM_write_EC_PUBKEY | ||
558 | .Fa "FILE *fp" | ||
559 | .Fa "EC_KEY *x" | ||
560 | .Fc | ||
362 | .Ft X509 * | 561 | .Ft X509 * |
363 | .Fo PEM_read_bio_X509 | 562 | .Fo PEM_read_bio_X509 |
364 | .Fa "BIO *bp" | 563 | .Fa "BIO *bp" |
@@ -572,6 +771,20 @@ The algorithm to use is specified in the | |||
572 | parameter and should be the NID of the corresponding OBJECT IDENTIFIER. | 771 | parameter and should be the NID of the corresponding OBJECT IDENTIFIER. |
573 | .Pp | 772 | .Pp |
574 | The | 773 | The |
774 | .Sy PKCS8 | ||
775 | functions process an encrypted private key using an | ||
776 | .Vt X509_SIG | ||
777 | structure and the | ||
778 | .Xr d2i_X509_SIG 3 | ||
779 | function. | ||
780 | .Pp | ||
781 | The | ||
782 | .Sy PKCS8_PRIV_KEY_INFO | ||
783 | functions process a private key using a | ||
784 | .Vt PKCS8_PRIV_KEY_INFO | ||
785 | structure. | ||
786 | .Pp | ||
787 | The | ||
575 | .Sy PUBKEY | 788 | .Sy PUBKEY |
576 | functions process a public key using an | 789 | functions process a public key using an |
577 | .Vt EVP_PKEY | 790 | .Vt EVP_PKEY |
@@ -634,6 +847,26 @@ structure. | |||
634 | The parameters are encoded using a PKCS#3 DHparameter structure. | 847 | The parameters are encoded using a PKCS#3 DHparameter structure. |
635 | .Pp | 848 | .Pp |
636 | The | 849 | The |
850 | .Sy ECPKParameters | ||
851 | functions process EC parameters using an | ||
852 | .Vt EC_GROUP | ||
853 | structure and the | ||
854 | .Xr d2i_ECPKParameters | ||
855 | function. | ||
856 | .Pp | ||
857 | The | ||
858 | .Sy ECPrivateKey | ||
859 | functions process an EC private key using an | ||
860 | .Vt EC_KEY | ||
861 | structure. | ||
862 | .Pp | ||
863 | The | ||
864 | .Sy EC_PUBKEY | ||
865 | functions process an EC public key using an | ||
866 | .Vt EC_KEY | ||
867 | structure. | ||
868 | .Pp | ||
869 | The | ||
637 | .Sy X509 | 870 | .Sy X509 |
638 | functions process an X509 certificate using an | 871 | functions process an X509 certificate using an |
639 | .Vt X509 | 872 | .Vt X509 |