summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2019-06-08 09:51:40 +0000
committerschwarze <>2019-06-08 09:51:40 +0000
commit75842177a9c23b09df0eb4e427a0a4a120a095c4 (patch)
treea4d250bc490838cbc8234ec1d39d18fb1980fc15 /src
parent4fa434c19edccce89fe23b764f97706c3ba86b8d (diff)
downloadopenbsd-75842177a9c23b09df0eb4e427a0a4a120a095c4.tar.gz
openbsd-75842177a9c23b09df0eb4e427a0a4a120a095c4.tar.bz2
openbsd-75842177a9c23b09df0eb4e427a0a4a120a095c4.zip
document the RSA_FLAG_* constants for RSA_*_flags(3);
OK tb@ jmc@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/RSA_get0_key.379
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
263any flags already set remain set. 280any flags already set remain set.
264For all three functions, multiple flags can be passed in one call, 281For all three functions, multiple flags can be passed in one call,
265OR'ed together bitwise. 282OR'ed together bitwise.
283.Pp
284The following flags are supported:
285.Bl -tag -width Ds
286.It Dv RSA_FLAG_CACHE_PRIVATE No and Dv RSA_FLAG_CACHE_PUBLIC
287Precompute information needed for Montgomery multiplication
288from the private and public key, respectively, and cache it in
289.Fa r
290for repeated use.
291These two flags are set by default for the default RSA implementation,
292.Xr RSA_PKCS1_SSLeay 3 .
293.It Dv RSA_FLAG_EXT_PKEY
294The function set with
295.Xr RSA_meth_set_mod_exp 3
296is used for private key operations even if
297.Fa p ,
298.Fa q ,
299.Fa dmp1 ,
300.Fa dmq1 ,
301and
302.Fa iqmp
303are all
304.Dv NULL .
305This flag may be useful with RSA implementations that do not use the
306private key components stored in the standard fields, for example
307because they store the private key in external hardware.
308If this flag is unset, the function set with
309.Xr RSA_meth_set_bn_mod_exp 3
310is used with
311.Fa n
312and
313.Fa d
314instead.
315.It Dv RSA_FLAG_NO_BLINDING
316Turn off blinding during private key encryption and decryption.
317This flag is set by
318.Xr RSA_blinding_off 3 .
319.It Dv RSA_FLAG_SIGN_VER
320Enable the use of the functions set with
321.Xr RSA_meth_set_sign 3
322and
323.Xr RSA_meth_set_verify 3 .
324If unset, the functions set with
325.Xr RSA_meth_set_priv_enc 3
326and
327.Xr RSA_meth_set_pub_dec 3
328are used instead, respectively.
329.El
330.Pp
331The flags
332.Dv RSA_FLAG_BLINDING ,
333.Dv RSA_FLAG_CHECKED ,
334.Dv RSA_FLAG_FIPS_METHOD ,
335.Dv RSA_FLAG_NON_FIPS_ALLOW ,
336and
337.Dv RSA_FLAG_THREAD_SAFE
338are 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 ,