summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_print_private.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_print_private.376
1 files changed, 76 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_print_private.3 b/src/lib/libcrypto/man/EVP_PKEY_print_private.3
new file mode 100644
index 0000000000..d1f627c6a0
--- /dev/null
+++ b/src/lib/libcrypto/man/EVP_PKEY_print_private.3
@@ -0,0 +1,76 @@
1.Dd $Mdocdate: November 3 2016 $
2.Dt EVP_PKEY_PRINT_PRIVATE 3
3.Os
4.Sh NAME
5.Nm EVP_PKEY_print_public ,
6.Nm EVP_PKEY_print_private ,
7.Nm EVP_PKEY_print_params
8.Nd public key algorithm printing routines
9.Sh SYNOPSIS
10.In openssl/evp.h
11.Ft int
12.Fo EVP_PKEY_print_public
13.Fa "BIO *out"
14.Fa "const EVP_PKEY *pkey"
15.Fa "int indent"
16.Fa "ASN1_PCTX *pctx"
17.Fc
18.Ft int
19.Fo EVP_PKEY_print_private
20.Fa "BIO *out"
21.Fa "const EVP_PKEY *pkey"
22.Fa "int indent"
23.Fa "ASN1_PCTX *pctx"
24.Fc
25.Ft int
26.Fo EVP_PKEY_print_params
27.Fa "BIO *out"
28.Fa "const EVP_PKEY *pkey"
29.Fa "int indent"
30.Fa "ASN1_PCTX *pctx"
31.Fc
32.Sh DESCRIPTION
33The functions
34.Fn EVP_PKEY_print_public ,
35.Fn EVP_PKEY_print_private ,
36and
37.Fn EVP_PKEY_print_params
38print out the public, private or parameter components of key
39.Fa pkey ,
40respectively.
41The key is sent to
42.Vt BIO
43.Fa out
44in human readable form.
45The parameter
46.Fa indent
47indicates how far the printout should be indented.
48.Pp
49The
50.Fa pctx
51parameter allows the print output to be finely tuned by using ASN1
52printing options.
53If
54.Fa pctx
55is set to
56.Dv NULL ,
57then default values will be used.
58Currently, no public key algorithms include any options in the
59.Fa pctx
60parameter.
61.Pp
62If the key does not include all the components indicated by the function,
63then only those contained in the key will be printed.
64For example, passing a public key to
65.Fn EVP_PKEY_print_private
66will only print the public components.
67.Sh RETURN VALUES
68These functions all return 1 for success and 0 or a negative value for
69failure.
70In particular, a return value of -2 indicates the operation is not
71supported by the public key algorithm.
72.Sh SEE ALSO
73.Xr EVP_PKEY_CTX_new 3 ,
74.Xr EVP_PKEY_keygen 3
75.Sh HISTORY
76These functions were first added to OpenSSL 1.0.0.