1EVP_PKEY_PRINT_PRIVATE(3) OpenSSL EVP_PKEY_PRINT_PRIVATE(3)
2
3
4
6 EVP_PKEY_print_public, EVP_PKEY_print_private, EVP_PKEY_print_params -
7 public key algorithm printing routines
8
10 #include <openssl/evp.h>
11
12 int EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey,
13 int indent, ASN1_PCTX *pctx);
14 int EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey,
15 int indent, ASN1_PCTX *pctx);
16 int EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey,
17 int indent, ASN1_PCTX *pctx);
18
20 The functions EVP_PKEY_print_public(), EVP_PKEY_print_private() and
21 EVP_PKEY_print_params() print out the public, private or parameter
22 components of key pkey respectively. The key is sent to BIO out in
23 human readable form. The parameter indent indicated how far the
24 printout should be indented.
25
26 The pctx parameter allows the print output to be finely tuned by using
27 ASN1 printing options. If pctx is set to NULL then default values will
28 be used.
29
31 Currently no public key algorithms include any options in the pctx
32 parameter.
33
34 If the key does not include all the components indicated by the
35 function then only those contained in the key will be printed. For
36 example passing a public key to EVP_PKEY_print_private() will only
37 print the public components.
38
40 These functions all return 1 for success and 0 or a negative value for
41 failure. In particular a return value of -2 indicates the operation is
42 not supported by the public key algorithm.
43
45 EVP_PKEY_CTX_new(3), EVP_PKEY_keygen(3)
46
48 These functions were added in OpenSSL 1.0.0.
49
51 Copyright 2006-2017 The OpenSSL Project Authors. All Rights Reserved.
52
53 Licensed under the OpenSSL license (the "License"). You may not use
54 this file except in compliance with the License. You can obtain a copy
55 in the file LICENSE in the source distribution or at
56 <https://www.openssl.org/source/license.html>.
57
58
59
601.1.1i 2021-01-26 EVP_PKEY_PRINT_PRIVATE(3)