summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/RSA_get0_key.352
1 files changed, 49 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/RSA_get0_key.3 b/src/lib/libcrypto/man/RSA_get0_key.3
index 0da1c54462..f82534864f 100644
--- a/src/lib/libcrypto/man/RSA_get0_key.3
+++ b/src/lib/libcrypto/man/RSA_get0_key.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: RSA_get0_key.3,v 1.2 2018/02/19 13:28:05 schwarze Exp $ 1.\" $OpenBSD: RSA_get0_key.3,v 1.3 2018/02/24 13:04:47 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 was written by Richard Levitte <levitte@openssl.org>
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: February 19 2018 $ 51.Dd $Mdocdate: February 24 2018 $
52.Dt RSA_GET0_KEY 3 52.Dt RSA_GET0_KEY 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -57,7 +57,10 @@
57.Nm RSA_get0_factors , 57.Nm RSA_get0_factors ,
58.Nm RSA_set0_factors , 58.Nm RSA_set0_factors ,
59.Nm RSA_get0_crt_params , 59.Nm RSA_get0_crt_params ,
60.Nm RSA_set0_crt_params 60.Nm RSA_set0_crt_params ,
61.Nm RSA_clear_flags ,
62.Nm RSA_test_flags ,
63.Nm RSA_set_flags
61.Nd get and set data in an RSA object 64.Nd get and set data in an RSA object
62.Sh SYNOPSIS 65.Sh SYNOPSIS
63.In openssl/rsa.h 66.In openssl/rsa.h
@@ -101,6 +104,21 @@
101.Fa "BIGNUM *dmq1" 104.Fa "BIGNUM *dmq1"
102.Fa "BIGNUM *iqmp" 105.Fa "BIGNUM *iqmp"
103.Fc 106.Fc
107.Ft void
108.Fo RSA_clear_flags
109.Fa "RSA *r"
110.Fa "int flags"
111.Fc
112.Ft int
113.Fo RSA_test_flags
114.Fa "const RSA *r"
115.Fa "int flags"
116.Fc
117.Ft void
118.Fo RSA_set_flags
119.Fa "RSA *r"
120.Fa "int flags"
121.Fc
104.Sh DESCRIPTION 122.Sh DESCRIPTION
105An 123An
106.Vt RSA 124.Vt RSA
@@ -226,12 +244,40 @@ or
226If needed, duplicate the received value using 244If needed, duplicate the received value using
227.Xr BN_dup 3 245.Xr BN_dup 3
228and pass the duplicate. 246and pass the duplicate.
247.Pp
248.Fn RSA_clear_flags
249clears the specified
250.Fa flags
251in
252.Fa r .
253.Fn RSA_test_flags
254tests the
255.Fa flags
256in
257.Fa r .
258.Fn RSA_set_flags
259sets the
260.Fa flags
261in
262.Fa r ;
263any flags already set remain set.
264For all three functions, multiple flags can be passed in one call,
265OR'ed together bitwise.
229.Sh RETURN VALUES 266.Sh RETURN VALUES
230.Fn RSA_set0_key , 267.Fn RSA_set0_key ,
231.Fn RSA_set0_factors , 268.Fn RSA_set0_factors ,
232and 269and
233.Fn RSA_set0_crt_params 270.Fn RSA_set0_crt_params
234return 1 on success or 0 on failure. 271return 1 on success or 0 on failure.
272.Pp
273.Fn RSA_test_flags
274returns those of the given
275.Fa flags
276currently set in
277.Fa r
278or 0 if none of the given
279.Fa flags
280are set.
235.Sh SEE ALSO 281.Sh SEE ALSO
236.Xr RSA_check_key 3 , 282.Xr RSA_check_key 3 ,
237.Xr RSA_generate_key 3 , 283.Xr RSA_generate_key 3 ,