diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_keygen.3 | 18 |
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 |
71 | The | 71 | The |
72 | .Fn EVP_PKEY_keygen | 72 | .Fn EVP_PKEY_keygen |
73 | function performs a key generation operation, the generated key is | 73 | function performs a key generation operation. |
74 | written to | 74 | The generated key is written to |
75 | .Fa ppkey . | 75 | .Fa ppkey . |
76 | .Pp | 76 | .Pp |
77 | The functions | 77 | The functions |
@@ -94,7 +94,7 @@ returns parameters associated with the generation operation. | |||
94 | If | 94 | If |
95 | .Fa idx | 95 | .Fa idx |
96 | is -1, the total number of parameters available is returned. | 96 | is -1, the total number of parameters available is returned. |
97 | Any non negative value returns the value of that parameter. | 97 | Any 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 |
99 | with a non-negative value for | 99 | with 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. | |||
159 | In particular, a return value of -2 indicates the operation is not | 159 | In particular, a return value of -2 indicates the operation is not |
160 | supported by the public key algorithm. | 160 | supported by the public key algorithm. |
161 | .Sh EXAMPLES | 161 | .Sh EXAMPLES |
162 | Generate a 2048 bit RSA key: | 162 | Generate 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 |
182 | Generate a key from a set of parameters: | 182 | Generate 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 |
201 | Example of generation callback for OpenSSL public key implementations: | 201 | Example 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 | ||
205 | EVP_PKEY_CTX_set_app_data(ctx, status_bio); | 205 | EVP_PKEY_CTX_set_app_data(ctx, status_bio); |