diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/BN_cmp.3 | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/BN_cmp.3 b/src/lib/libcrypto/man/BN_cmp.3 index 5c1fad64a0..9ca73a626f 100644 --- a/src/lib/libcrypto/man/BN_cmp.3 +++ b/src/lib/libcrypto/man/BN_cmp.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: BN_cmp.3,v 1.8 2021/12/06 19:45:27 schwarze Exp $ | 1 | .\" $OpenBSD: BN_cmp.3,v 1.9 2021/12/18 21:11:50 schwarze Exp $ |
| 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" full merge up to: OpenSSL 5b31b9df Aug 4 10:45:52 2021 +0300 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. |
| 5 | .\" Copyright (c) 2000 The OpenSSL Project. All rights reserved. | 5 | .\" Copyright (c) 2000 The OpenSSL Project. All rights reserved. |
| @@ -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 6 2021 $ | 51 | .Dd $Mdocdate: December 18 2021 $ |
| 52 | .Dt BN_CMP 3 | 52 | .Dt BN_CMP 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -57,6 +57,7 @@ | |||
| 57 | .Nm BN_is_zero , | 57 | .Nm BN_is_zero , |
| 58 | .Nm BN_is_one , | 58 | .Nm BN_is_one , |
| 59 | .Nm BN_is_word , | 59 | .Nm BN_is_word , |
| 60 | .Nm BN_abs_is_word , | ||
| 60 | .Nm BN_is_odd | 61 | .Nm BN_is_odd |
| 61 | .Nd BIGNUM comparison and test functions | 62 | .Nd BIGNUM comparison and test functions |
| 62 | .Sh SYNOPSIS | 63 | .Sh SYNOPSIS |
| @@ -82,7 +83,12 @@ | |||
| 82 | .Ft int | 83 | .Ft int |
| 83 | .Fo BN_is_word | 84 | .Fo BN_is_word |
| 84 | .Fa "const BIGNUM *a" | 85 | .Fa "const BIGNUM *a" |
| 85 | .Fa "BN_ULONG w" | 86 | .Fa "const BN_ULONG w" |
| 87 | .Fc | ||
| 88 | .Ft int | ||
| 89 | .Fo BN_abs_is_word | ||
| 90 | .Fa "const BIGNUM *a" | ||
| 91 | .Fa "const BN_ULONG w" | ||
| 86 | .Fc | 92 | .Fc |
| 87 | .Ft int | 93 | .Ft int |
| 88 | .Fo BN_is_odd | 94 | .Fo BN_is_odd |
| @@ -106,6 +112,11 @@ test if | |||
| 106 | equals 0, 1, or | 112 | equals 0, 1, or |
| 107 | .Fa w | 113 | .Fa w |
| 108 | respectively. | 114 | respectively. |
| 115 | .Fn BN_abs_is_word | ||
| 116 | tests if the absolute value of | ||
| 117 | .Fa a | ||
| 118 | equals | ||
| 119 | .Fa w . | ||
| 109 | .Fn BN_is_odd | 120 | .Fn BN_is_odd |
| 110 | tests if a is odd. | 121 | tests if a is odd. |
| 111 | .Sh RETURN VALUES | 122 | .Sh RETURN VALUES |
| @@ -125,6 +136,7 @@ and | |||
| 125 | .Fn BN_is_zero , | 136 | .Fn BN_is_zero , |
| 126 | .Fn BN_is_one , | 137 | .Fn BN_is_one , |
| 127 | .Fn BN_is_word , | 138 | .Fn BN_is_word , |
| 139 | .Fn BN_abs_is_word , | ||
| 128 | and | 140 | and |
| 129 | .Fn BN_is_odd | 141 | .Fn BN_is_odd |
| 130 | return 1 if the condition is true, 0 otherwise. | 142 | return 1 if the condition is true, 0 otherwise. |
| @@ -140,5 +152,9 @@ and | |||
| 140 | first appeared in SSLeay 0.5.1. | 152 | first appeared in SSLeay 0.5.1. |
| 141 | .Fn BN_is_odd | 153 | .Fn BN_is_odd |
| 142 | first appeared in SSLeay 0.8.0. | 154 | first appeared in SSLeay 0.8.0. |
| 143 | All these functions have been available since | 155 | These functions have been available since |
| 144 | .Ox 2.4 . | 156 | .Ox 2.4 . |
| 157 | .Pp | ||
| 158 | .Fn BN_abs_is_word | ||
| 159 | first appeared in OpenSSL 0.9.7 and has been available since | ||
| 160 | .Ox 3.2 . | ||
