diff options
Diffstat (limited to 'src/lib/libcrypto/man/BN_mod_mul_montgomery.3')
| -rw-r--r-- | src/lib/libcrypto/man/BN_mod_mul_montgomery.3 | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 b/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 index 8b06cb6217..87f09e3cb6 100644 --- a/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 +++ b/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.5 2016/12/10 21:13:25 schwarze Exp $ | 1 | .\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.6 2017/01/29 23:41:49 schwarze Exp $ |
| 2 | .\" OpenSSL 6859cf74 Sep 25 13:33:28 2002 +0000 | 2 | .\" OpenSSL 6859cf74 Sep 25 13:33:28 2002 +0000 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@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: December 10 2016 $ | 51 | .Dd $Mdocdate: January 29 2017 $ |
| 52 | .Dt BN_MOD_MUL_MONTGOMERY 3 | 52 | .Dt BN_MOD_MUL_MONTGOMERY 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -119,9 +119,12 @@ operations are to be performed using the same modulus. | |||
| 119 | allocates and initializes a | 119 | allocates and initializes a |
| 120 | .Vt BN_MONT_CTX | 120 | .Vt BN_MONT_CTX |
| 121 | structure. | 121 | structure. |
| 122 | .Pp | ||
| 122 | .Fn BN_MONT_CTX_init | 123 | .Fn BN_MONT_CTX_init |
| 123 | initializes an existing uninitialized | 124 | initializes an existing uninitialized |
| 124 | .Vt BN_MONT_CTX . | 125 | .Vt BN_MONT_CTX . |
| 126 | It is deprecated and dangerous, see | ||
| 127 | .Sx CAVEATS . | ||
| 125 | .Pp | 128 | .Pp |
| 126 | .Fn BN_MONT_CTX_set | 129 | .Fn BN_MONT_CTX_set |
| 127 | sets up the | 130 | sets up the |
| @@ -213,8 +216,7 @@ The error codes can be obtained by | |||
| 213 | .Sh SEE ALSO | 216 | .Sh SEE ALSO |
| 214 | .Xr BN_add 3 , | 217 | .Xr BN_add 3 , |
| 215 | .Xr BN_CTX_new 3 , | 218 | .Xr BN_CTX_new 3 , |
| 216 | .Xr BN_new 3 , | 219 | .Xr BN_new 3 |
| 217 | .Xr ERR_get_error 3 | ||
| 218 | .Sh HISTORY | 220 | .Sh HISTORY |
| 219 | .Fn BN_MONT_CTX_new , | 221 | .Fn BN_MONT_CTX_new , |
| 220 | .Fn BN_MONT_CTX_free , | 222 | .Fn BN_MONT_CTX_free , |
| @@ -229,3 +231,20 @@ are available in all versions of SSLeay and OpenSSL. | |||
| 229 | and | 231 | and |
| 230 | .Fn BN_MONT_CTX_copy | 232 | .Fn BN_MONT_CTX_copy |
| 231 | were added in SSLeay 0.9.1b. | 233 | were added in SSLeay 0.9.1b. |
| 234 | .Sh CAVEATS | ||
| 235 | .Fn BN_MONT_CTX_init | ||
| 236 | must not be called on a context that was used previously, or | ||
| 237 | memory used by the embedded | ||
| 238 | .Vt BIGNUM | ||
| 239 | structures is leaked immediately. | ||
| 240 | Besides, it must not be called on a context created with | ||
| 241 | .Fn BN_MONT_CTX_new , | ||
| 242 | or the context itself will likely be leaked later. | ||
| 243 | It can only be used on a static | ||
| 244 | .Vt BN_MONT_CTX | ||
| 245 | structure, on one located on the stack, or on one | ||
| 246 | .Xr malloc 3 Ap ed | ||
| 247 | manually, but all these options are discouraged because they | ||
| 248 | will no longer work once | ||
| 249 | .Vt BN_MONT_CTX | ||
| 250 | will be made opaque. | ||
