diff options
Diffstat (limited to 'src/lib/libcrypto/doc/RSA_set_method.pod')
-rw-r--r-- | src/lib/libcrypto/doc/RSA_set_method.pod | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/src/lib/libcrypto/doc/RSA_set_method.pod b/src/lib/libcrypto/doc/RSA_set_method.pod index b672712292..14917dd35f 100644 --- a/src/lib/libcrypto/doc/RSA_set_method.pod +++ b/src/lib/libcrypto/doc/RSA_set_method.pod | |||
@@ -3,7 +3,7 @@ | |||
3 | =head1 NAME | 3 | =head1 NAME |
4 | 4 | ||
5 | RSA_set_default_method, RSA_get_default_method, RSA_set_method, | 5 | RSA_set_default_method, RSA_get_default_method, RSA_set_method, |
6 | RSA_get_method, RSA_PKCS1_SSLeay, RSA_PKCS1_RSAref, | 6 | RSA_get_method, RSA_PKCS1_SSLeay, |
7 | RSA_null_method, RSA_flags, RSA_new_method - select RSA method | 7 | RSA_null_method, RSA_flags, RSA_new_method - select RSA method |
8 | 8 | ||
9 | =head1 SYNOPSIS | 9 | =head1 SYNOPSIS |
@@ -15,14 +15,12 @@ RSA_null_method, RSA_flags, RSA_new_method - select RSA method | |||
15 | 15 | ||
16 | RSA_METHOD *RSA_get_default_openssl_method(void); | 16 | RSA_METHOD *RSA_get_default_openssl_method(void); |
17 | 17 | ||
18 | RSA_METHOD *RSA_set_method(RSA *rsa, ENGINE *engine); | 18 | int RSA_set_method(RSA *rsa, ENGINE *engine); |
19 | 19 | ||
20 | RSA_METHOD *RSA_get_method(RSA *rsa); | 20 | RSA_METHOD *RSA_get_method(RSA *rsa); |
21 | 21 | ||
22 | RSA_METHOD *RSA_PKCS1_SSLeay(void); | 22 | RSA_METHOD *RSA_PKCS1_SSLeay(void); |
23 | 23 | ||
24 | RSA_METHOD *RSA_PKCS1_RSAref(void); | ||
25 | |||
26 | RSA_METHOD *RSA_null_method(void); | 24 | RSA_METHOD *RSA_null_method(void); |
27 | 25 | ||
28 | int RSA_flags(RSA *rsa); | 26 | int RSA_flags(RSA *rsa); |
@@ -35,17 +33,8 @@ An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA | |||
35 | operations. By modifying the method, alternative implementations | 33 | operations. By modifying the method, alternative implementations |
36 | such as hardware accelerators may be used. | 34 | such as hardware accelerators may be used. |
37 | 35 | ||
38 | Initially, the default is to use the OpenSSL internal implementation, | 36 | Initially, the default is to use the OpenSSL internal implementation. |
39 | unless OpenSSL was configured with the C<rsaref> or C<-DRSA_NULL> | 37 | RSA_PKCS1_SSLeay() returns a pointer to that method. |
40 | options. RSA_PKCS1_SSLeay() returns a pointer to that method. | ||
41 | |||
42 | RSA_PKCS1_RSAref() returns a pointer to a method that uses the RSAref | ||
43 | library. This is the default method in the C<rsaref> configuration; | ||
44 | the function is not available in other configurations. | ||
45 | RSA_null_method() returns a pointer to a method that does not support | ||
46 | the RSA transformation. It is the default if OpenSSL is compiled with | ||
47 | C<-DRSA_NULL>. These methods may be useful in the USA because of a | ||
48 | patent on the RSA cryptosystem. | ||
49 | 38 | ||
50 | RSA_set_default_openssl_method() makes B<meth> the default method for all B<RSA> | 39 | RSA_set_default_openssl_method() makes B<meth> the default method for all B<RSA> |
51 | structures created later. B<NB:> This is true only whilst the default engine | 40 | structures created later. B<NB:> This is true only whilst the default engine |
@@ -132,9 +121,8 @@ the default engine for RSA operations is used. | |||
132 | 121 | ||
133 | =head1 RETURN VALUES | 122 | =head1 RETURN VALUES |
134 | 123 | ||
135 | RSA_PKCS1_SSLeay(), RSA_PKCS1_RSAref(), RSA_PKCS1_null_method(), | 124 | RSA_PKCS1_SSLeay(), RSA_PKCS1_null_method(), RSA_get_default_openssl_method() |
136 | RSA_get_default_openssl_method() and RSA_get_method() return pointers to | 125 | and RSA_get_method() return pointers to the respective RSA_METHODs. |
137 | the respective RSA_METHODs. | ||
138 | 126 | ||
139 | RSA_set_default_openssl_method() returns no value. | 127 | RSA_set_default_openssl_method() returns no value. |
140 | 128 | ||
@@ -163,6 +151,6 @@ added in OpenSSL 0.9.4. | |||
163 | RSA_set_default_openssl_method() and RSA_get_default_openssl_method() | 151 | RSA_set_default_openssl_method() and RSA_get_default_openssl_method() |
164 | replaced RSA_set_default_method() and RSA_get_default_method() respectively, | 152 | replaced RSA_set_default_method() and RSA_get_default_method() respectively, |
165 | and RSA_set_method() and RSA_new_method() were altered to use B<ENGINE>s | 153 | and RSA_set_method() and RSA_new_method() were altered to use B<ENGINE>s |
166 | rather than B<DH_METHOD>s during development of OpenSSL 0.9.6. | 154 | rather than B<RSA_METHOD>s during development of OpenSSL 0.9.6. |
167 | 155 | ||
168 | =cut | 156 | =cut |