summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/RSA_meth_new.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/RSA_meth_new.344
1 files changed, 34 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/RSA_meth_new.3 b/src/lib/libcrypto/man/RSA_meth_new.3
index ae3ca88adb..6eabcc5bf8 100644
--- a/src/lib/libcrypto/man/RSA_meth_new.3
+++ b/src/lib/libcrypto/man/RSA_meth_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: RSA_meth_new.3,v 1.1 2018/03/18 13:06:36 schwarze Exp $ 1.\" $OpenBSD: RSA_meth_new.3,v 1.2 2018/09/12 06:35:38 djm Exp $
2.\" selective merge up to: OpenSSL a970b14f Jul 31 18:58:40 2017 -0400 2.\" selective merge up to: OpenSSL a970b14f Jul 31 18:58:40 2017 -0400
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -65,13 +65,15 @@
65.\" 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
66.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
67.\" 67.\"
68.Dd $Mdocdate: March 18 2018 $ 68.Dd $Mdocdate: September 12 2018 $
69.Dt RSA_METH_NEW 3 69.Dt RSA_METH_NEW 3
70.Os 70.Os
71.Sh NAME 71.Sh NAME
72.Nm RSA_meth_new , 72.Nm RSA_meth_new ,
73.Nm RSA_meth_free ,
74.Nm RSA_meth_dup , 73.Nm RSA_meth_dup ,
74.Nm RSA_meth_free ,
75.Nm RSA_meth_get_finish ,
76.Nm RSA_meth_set1_name ,
75.Nm RSA_meth_set_finish , 77.Nm RSA_meth_set_finish ,
76.Nm RSA_meth_set_priv_enc , 78.Nm RSA_meth_set_priv_enc ,
77.Nm RSA_meth_set_priv_dec 79.Nm RSA_meth_set_priv_dec
@@ -83,15 +85,22 @@
83.Fa "const char *name" 85.Fa "const char *name"
84.Fa "int flags" 86.Fa "int flags"
85.Fc 87.Fc
88.Ft RSA_METHOD *
89.Fo RSA_meth_dup
90.Fa "const RSA_METHOD *meth"
91.Fc
86.Ft void 92.Ft void
87.Fo RSA_meth_free 93.Fo RSA_meth_free
88.Fa "RSA_METHOD *meth" 94.Fa "RSA_METHOD *meth"
89.Fc 95.Fc
90.Ft RSA_METHOD * 96.Ft int
91.Fo RSA_meth_dup 97.Fo RSA_meth_set1_name
92.Fa "const RSA_METHOD *meth" 98.Fa "RSA_METHOD *meth"
99.Fa "const char *name"
93.Fc 100.Fc
94.Ft int 101.Ft int
102.Fn "(*RSA_meth_get_finish(const RSA_METHOD *meth))" "RSA *rsa"
103.Ft int
95.Fo RSA_meth_set_finish 104.Fo RSA_meth_set_finish
96.Fa "RSA_METHOD *meth" 105.Fa "RSA_METHOD *meth"
97.Fa "int (*finish)(RSA *rsa)" 106.Fa "int (*finish)(RSA *rsa)"
@@ -142,8 +151,18 @@ destroys
142.Fa meth 151.Fa meth
143and frees any memory associated with it. 152and frees any memory associated with it.
144.Pp 153.Pp
154.Fn RSA_meth_set1_name
155Stores a copy of the NUL-terminated
156.Fa name
157in the
158.Vt RSA_METHOD
159object after freeing the previously stored
160.Fa name.
161.Pp
162.Fn RSA_meth_get_finish
163and
145.Fn RSA_meth_set_finish 164.Fn RSA_meth_set_finish
146sets an optional function for destroying an 165get and set an optional function for destroying an
147.Vt RSA 166.Vt RSA
148object. 167object.
149Unless 168Unless
@@ -180,7 +199,7 @@ object or
180on failure. 199on failure.
181.Pp 200.Pp
182All 201All
183.Fn RSA_meth_set_* 202.Fn RSA_meth_set*
184functions return 1 on success or 0 on failure. 203functions return 1 on success or 0 on failure.
185.Sh SEE ALSO 204.Sh SEE ALSO
186.Xr RSA_new 3 , 205.Xr RSA_new 3 ,
@@ -188,6 +207,11 @@ functions return 1 on success or 0 on failure.
188.Xr RSA_private_encrypt 3 , 207.Xr RSA_private_encrypt 3 ,
189.Xr RSA_set_method 3 208.Xr RSA_set_method 3
190.Sh HISTORY 209.Sh HISTORY
191These functions first appeared in OpenSSL 1.1.0 210These functions first appeared in OpenSSL 1.1.0.
192and have been available since 211.Fn RSA_meth_get_finish
212and
213.Fn RSA_meth_set1_name
214have been available since
215.Ox 6.4 ,
216all the other functions since
193.Ox 6.3 . 217.Ox 6.3 .