diff options
author | schwarze <> | 2021-12-06 19:45:27 +0000 |
---|---|---|
committer | schwarze <> | 2021-12-06 19:45:27 +0000 |
commit | 1899d459607a5a561a64371d6a7eecdd4407fc43 (patch) | |
tree | 097201a7ed49548eb6092bcb78dc0d4c3b3b14a3 | |
parent | 60a6a10467f5b7d56c92fe8e4133a6af9e9bd48f (diff) | |
download | openbsd-1899d459607a5a561a64371d6a7eecdd4407fc43.tar.gz openbsd-1899d459607a5a561a64371d6a7eecdd4407fc43.tar.bz2 openbsd-1899d459607a5a561a64371d6a7eecdd4407fc43.zip |
In the next major bump, some BN macros will become functions.
In order to not forget it, already remove the statements
that these APIs are currently implemented as macros:
Not saying that doesn't make the documentation wrong.
-rw-r--r-- | src/lib/libcrypto/man/BN_cmp.3 | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/man/BN_copy.3 | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/man/BN_mod_mul_montgomery.3 | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/man/BN_set_flags.3 | 9 | ||||
-rw-r--r-- | src/lib/libcrypto/man/BN_set_negative.3 | 5 |
5 files changed, 11 insertions, 27 deletions
diff --git a/src/lib/libcrypto/man/BN_cmp.3 b/src/lib/libcrypto/man/BN_cmp.3 index 8064b7e90d..5c1fad64a0 100644 --- a/src/lib/libcrypto/man/BN_cmp.3 +++ b/src/lib/libcrypto/man/BN_cmp.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BN_cmp.3,v 1.7 2021/11/30 18:34:35 tb Exp $ | 1 | .\" $OpenBSD: BN_cmp.3,v 1.8 2021/12/06 19:45:27 schwarze Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
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: November 30 2021 $ | 51 | .Dd $Mdocdate: December 6 2021 $ |
52 | .Dt BN_CMP 3 | 52 | .Dt BN_CMP 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -108,13 +108,6 @@ equals 0, 1, or | |||
108 | respectively. | 108 | respectively. |
109 | .Fn BN_is_odd | 109 | .Fn BN_is_odd |
110 | tests if a is odd. | 110 | tests if a is odd. |
111 | .Pp | ||
112 | .Fn BN_is_zero , | ||
113 | .Fn BN_is_one , | ||
114 | .Fn BN_is_word , | ||
115 | and | ||
116 | .Fn BN_is_odd | ||
117 | are macros. | ||
118 | .Sh RETURN VALUES | 111 | .Sh RETURN VALUES |
119 | .Fn BN_cmp | 112 | .Fn BN_cmp |
120 | returns -1 if | 113 | returns -1 if |
diff --git a/src/lib/libcrypto/man/BN_copy.3 b/src/lib/libcrypto/man/BN_copy.3 index 956b368dec..383255e382 100644 --- a/src/lib/libcrypto/man/BN_copy.3 +++ b/src/lib/libcrypto/man/BN_copy.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BN_copy.3,v 1.9 2018/03/27 17:35:50 schwarze Exp $ | 1 | .\" $OpenBSD: BN_copy.3,v 1.10 2021/12/06 19:45:27 schwarze Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> |
@@ -49,7 +49,7 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 51 | .\" |
52 | .Dd $Mdocdate: March 27 2018 $ | 52 | .Dd $Mdocdate: December 6 2021 $ |
53 | .Dt BN_COPY 3 | 53 | .Dt BN_COPY 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -97,7 +97,7 @@ in | |||
97 | It places significant restrictions on the copied data. | 97 | It places significant restrictions on the copied data. |
98 | Applications that do not adhere to these restrictions | 98 | Applications that do not adhere to these restrictions |
99 | may encounter unexpected side effects or crashes. | 99 | may encounter unexpected side effects or crashes. |
100 | For that reason, use of this macro is discouraged. | 100 | For that reason, use of this function is discouraged. |
101 | .Pp | 101 | .Pp |
102 | Any flags provided in | 102 | Any flags provided in |
103 | .Fa flags | 103 | .Fa flags |
diff --git a/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 b/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 index d87b50d6a8..963ba8fcd4 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.12 2021/11/30 18:34:35 tb Exp $ | 1 | .\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.13 2021/12/06 19:45:27 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: November 30 2021 $ | 51 | .Dd $Mdocdate: December 6 2021 $ |
52 | .Dt BN_MOD_MUL_MONTGOMERY 3 | 52 | .Dt BN_MOD_MUL_MONTGOMERY 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -195,9 +195,6 @@ typedef struct bn_mont_ctx_st { | |||
195 | } BN_MONT_CTX; | 195 | } BN_MONT_CTX; |
196 | .Ed | 196 | .Ed |
197 | .Pp | 197 | .Pp |
198 | .Fn BN_to_montgomery | ||
199 | is a macro. | ||
200 | .Pp | ||
201 | .Sy Warning : | 198 | .Sy Warning : |
202 | The inputs must be reduced modulo | 199 | The inputs must be reduced modulo |
203 | .Fa m , | 200 | .Fa m , |
diff --git a/src/lib/libcrypto/man/BN_set_flags.3 b/src/lib/libcrypto/man/BN_set_flags.3 index 8b2c404452..2baa990787 100644 --- a/src/lib/libcrypto/man/BN_set_flags.3 +++ b/src/lib/libcrypto/man/BN_set_flags.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BN_set_flags.3,v 1.4 2021/03/12 05:18:00 jsg Exp $ | 1 | .\" $OpenBSD: BN_set_flags.3,v 1.5 2021/12/06 19:45:27 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,7 +14,7 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: March 12 2021 $ | 17 | .Dd $Mdocdate: December 6 2021 $ |
18 | .Dt BN_SET_FLAGS 3 | 18 | .Dt BN_SET_FLAGS 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -114,11 +114,6 @@ The | |||
114 | .Fa flags | 114 | .Fa flags |
115 | argument has the same syntax as for | 115 | argument has the same syntax as for |
116 | .Fn BN_set_flags . | 116 | .Fn BN_set_flags . |
117 | .Pp | ||
118 | These functions are currently implemented as macros, but they are | ||
119 | likely to become real functions in the future when the | ||
120 | .Vt BIGNUM | ||
121 | data type will be made opaque. | ||
122 | .Sh RETURN VALUES | 117 | .Sh RETURN VALUES |
123 | .Fn BN_get_flags | 118 | .Fn BN_get_flags |
124 | returns zero or more of the above constants, OR'ed together. | 119 | returns zero or more of the above constants, OR'ed together. |
diff --git a/src/lib/libcrypto/man/BN_set_negative.3 b/src/lib/libcrypto/man/BN_set_negative.3 index b47fa22670..6cdff5c974 100644 --- a/src/lib/libcrypto/man/BN_set_negative.3 +++ b/src/lib/libcrypto/man/BN_set_negative.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BN_set_negative.3,v 1.5 2019/06/03 14:43:15 schwarze Exp $ | 1 | .\" $OpenBSD: BN_set_negative.3,v 1.6 2021/12/06 19:45:27 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,7 +14,7 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: June 3 2019 $ | 17 | .Dd $Mdocdate: December 6 2021 $ |
18 | .Dt BN_SET_NEGATIVE 3 | 18 | .Dt BN_SET_NEGATIVE 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -45,7 +45,6 @@ are non-zero, otherwise it sets it to positive. | |||
45 | .Fn BN_is_negative | 45 | .Fn BN_is_negative |
46 | tests the sign of | 46 | tests the sign of |
47 | .Fa b . | 47 | .Fa b . |
48 | It is currently implemented as a macro. | ||
49 | .Sh RETURN VALUES | 48 | .Sh RETURN VALUES |
50 | .Fn BN_is_negative | 49 | .Fn BN_is_negative |
51 | returns 1 if | 50 | returns 1 if |