diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/RSA_get0_key.3 | 79 |
1 files changed, 76 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/RSA_get0_key.3 b/src/lib/libcrypto/man/RSA_get0_key.3 index 3e6f75a906..1873dcf5f5 100644 --- a/src/lib/libcrypto/man/RSA_get0_key.3 +++ b/src/lib/libcrypto/man/RSA_get0_key.3 | |||
| @@ -1,7 +1,24 @@ | |||
| 1 | .\" $OpenBSD: RSA_get0_key.3,v 1.4 2018/03/23 23:18:17 schwarze Exp $ | 1 | .\" $OpenBSD: RSA_get0_key.3,v 1.5 2019/06/08 09:51:40 schwarze Exp $ |
| 2 | .\" selective merge up to: OpenSSL 665d899f Aug 2 02:19:43 2017 +0800 | 2 | .\" selective merge up to: OpenSSL 665d899f Aug 2 02:19:43 2017 +0800 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Richard Levitte <levitte@openssl.org> | 4 | .\" This file is a derived work. |
| 5 | .\" The changes are covered by the following Copyright and license: | ||
| 6 | .\" | ||
| 7 | .\" Copyright (c) 2019 Ingo Schwarze <schwarze@openbsd.org> | ||
| 8 | .\" | ||
| 9 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 10 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 11 | .\" copyright notice and this permission notice appear in all copies. | ||
| 12 | .\" | ||
| 13 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 14 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 15 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 16 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 17 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 20 | .\" | ||
| 21 | .\" The original file was written by Richard Levitte <levitte@openssl.org> | ||
| 5 | .\" Copyright (c) 2016 The OpenSSL Project. All rights reserved. | 22 | .\" Copyright (c) 2016 The OpenSSL Project. All rights reserved. |
| 6 | .\" | 23 | .\" |
| 7 | .\" Redistribution and use in source and binary forms, with or without | 24 | .\" Redistribution and use in source and binary forms, with or without |
| @@ -48,7 +65,7 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 67 | .\" |
| 51 | .Dd $Mdocdate: March 23 2018 $ | 68 | .Dd $Mdocdate: June 8 2019 $ |
| 52 | .Dt RSA_GET0_KEY 3 | 69 | .Dt RSA_GET0_KEY 3 |
| 53 | .Os | 70 | .Os |
| 54 | .Sh NAME | 71 | .Sh NAME |
| @@ -263,6 +280,62 @@ in | |||
| 263 | any flags already set remain set. | 280 | any flags already set remain set. |
| 264 | For all three functions, multiple flags can be passed in one call, | 281 | For all three functions, multiple flags can be passed in one call, |
| 265 | OR'ed together bitwise. | 282 | OR'ed together bitwise. |
| 283 | .Pp | ||
| 284 | The following flags are supported: | ||
| 285 | .Bl -tag -width Ds | ||
| 286 | .It Dv RSA_FLAG_CACHE_PRIVATE No and Dv RSA_FLAG_CACHE_PUBLIC | ||
| 287 | Precompute information needed for Montgomery multiplication | ||
| 288 | from the private and public key, respectively, and cache it in | ||
| 289 | .Fa r | ||
| 290 | for repeated use. | ||
| 291 | These two flags are set by default for the default RSA implementation, | ||
| 292 | .Xr RSA_PKCS1_SSLeay 3 . | ||
| 293 | .It Dv RSA_FLAG_EXT_PKEY | ||
| 294 | The function set with | ||
| 295 | .Xr RSA_meth_set_mod_exp 3 | ||
| 296 | is used for private key operations even if | ||
| 297 | .Fa p , | ||
| 298 | .Fa q , | ||
| 299 | .Fa dmp1 , | ||
| 300 | .Fa dmq1 , | ||
| 301 | and | ||
| 302 | .Fa iqmp | ||
| 303 | are all | ||
| 304 | .Dv NULL . | ||
| 305 | This flag may be useful with RSA implementations that do not use the | ||
| 306 | private key components stored in the standard fields, for example | ||
| 307 | because they store the private key in external hardware. | ||
| 308 | If this flag is unset, the function set with | ||
| 309 | .Xr RSA_meth_set_bn_mod_exp 3 | ||
| 310 | is used with | ||
| 311 | .Fa n | ||
| 312 | and | ||
| 313 | .Fa d | ||
| 314 | instead. | ||
| 315 | .It Dv RSA_FLAG_NO_BLINDING | ||
| 316 | Turn off blinding during private key encryption and decryption. | ||
| 317 | This flag is set by | ||
| 318 | .Xr RSA_blinding_off 3 . | ||
| 319 | .It Dv RSA_FLAG_SIGN_VER | ||
| 320 | Enable the use of the functions set with | ||
| 321 | .Xr RSA_meth_set_sign 3 | ||
| 322 | and | ||
| 323 | .Xr RSA_meth_set_verify 3 . | ||
| 324 | If unset, the functions set with | ||
| 325 | .Xr RSA_meth_set_priv_enc 3 | ||
| 326 | and | ||
| 327 | .Xr RSA_meth_set_pub_dec 3 | ||
| 328 | are used instead, respectively. | ||
| 329 | .El | ||
| 330 | .Pp | ||
| 331 | The flags | ||
| 332 | .Dv RSA_FLAG_BLINDING , | ||
| 333 | .Dv RSA_FLAG_CHECKED , | ||
| 334 | .Dv RSA_FLAG_FIPS_METHOD , | ||
| 335 | .Dv RSA_FLAG_NON_FIPS_ALLOW , | ||
| 336 | and | ||
| 337 | .Dv RSA_FLAG_THREAD_SAFE | ||
| 338 | are defined for compatibility with existing code but have no effect. | ||
| 266 | .Sh RETURN VALUES | 339 | .Sh RETURN VALUES |
| 267 | .Fn RSA_set0_key , | 340 | .Fn RSA_set0_key , |
| 268 | .Fn RSA_set0_factors , | 341 | .Fn RSA_set0_factors , |
