1EVP_PKEY_print_private(3)           OpenSSL          EVP_PKEY_print_private(3)
2
3
4

NAME

6       EVP_PKEY_print_public, EVP_PKEY_print_private, EVP_PKEY_print_params -
7       public key algorithm printing routines.
8

SYNOPSIS

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

DESCRIPTION

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

NOTES

31       Currently no public key algorithms include any options in the pctx
32       parameter 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

RETURN VALUES

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

SEE ALSO

45       EVP_PKEY_CTX_new(3), EVP_PKEY_keygen(3)
46

HISTORY

48       These functions were first added to OpenSSL 1.0.0.
49
50
51
521.0.2o                            2020-08-01         EVP_PKEY_print_private(3)
Impressum