summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_keygen.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_keygen.318
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_keygen.3 b/src/lib/libcrypto/man/EVP_PKEY_keygen.3
index c464924384..fd64e1eb66 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_keygen.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_keygen.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: EVP_PKEY_keygen.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: EVP_PKEY_keygen.3,v 1.3 2016/11/21 22:19:15 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 21 2016 $
4.Dt EVP_PKEY_KEYGEN 3 4.Dt EVP_PKEY_KEYGEN 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -70,8 +70,8 @@ for a key generation operation.
70.Pp 70.Pp
71The 71The
72.Fn EVP_PKEY_keygen 72.Fn EVP_PKEY_keygen
73function performs a key generation operation, the generated key is 73function performs a key generation operation.
74written to 74The generated key is written to
75.Fa ppkey . 75.Fa ppkey .
76.Pp 76.Pp
77The functions 77The functions
@@ -94,7 +94,7 @@ returns parameters associated with the generation operation.
94If 94If
95.Fa idx 95.Fa idx
96is -1, the total number of parameters available is returned. 96is -1, the total number of parameters available is returned.
97Any non negative value returns the value of that parameter. 97Any non-negative value returns the value of that parameter.
98.Fn EVP_PKEY_CTX_get_keygen_info 98.Fn EVP_PKEY_CTX_get_keygen_info
99with a non-negative value for 99with a non-negative value for
100.Fa idx 100.Fa idx
@@ -159,8 +159,8 @@ return 1 for success and 0 or a negative value for failure.
159In particular, a return value of -2 indicates the operation is not 159In particular, a return value of -2 indicates the operation is not
160supported by the public key algorithm. 160supported by the public key algorithm.
161.Sh EXAMPLES 161.Sh EXAMPLES
162Generate a 2048 bit RSA key: 162Generate a 2048-bit RSA key:
163.Bd -literal 163.Bd -literal -offset indent
164#include <openssl/evp.h> 164#include <openssl/evp.h>
165#include <openssl/rsa.h> 165#include <openssl/rsa.h>
166 166
@@ -180,7 +180,7 @@ if (EVP_PKEY_keygen(ctx, &pkey) <= 0)
180.Ed 180.Ed
181.Pp 181.Pp
182Generate a key from a set of parameters: 182Generate a key from a set of parameters:
183.Bd -literal 183.Bd -literal -offset indent
184#include <openssl/evp.h> 184#include <openssl/evp.h>
185#include <openssl/rsa.h> 185#include <openssl/rsa.h>
186 186
@@ -199,7 +199,7 @@ if (EVP_PKEY_keygen(ctx, &pkey) <= 0)
199.Ed 199.Ed
200.Pp 200.Pp
201Example of generation callback for OpenSSL public key implementations: 201Example of generation callback for OpenSSL public key implementations:
202.Bd -literal 202.Bd -literal -offset indent
203/* Application data is a BIO to output status to */ 203/* Application data is a BIO to output status to */
204 204
205EVP_PKEY_CTX_set_app_data(ctx, status_bio); 205EVP_PKEY_CTX_set_app_data(ctx, status_bio);