summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-12-06 19:45:27 +0000
committerschwarze <>2021-12-06 19:45:27 +0000
commit1899d459607a5a561a64371d6a7eecdd4407fc43 (patch)
tree097201a7ed49548eb6092bcb78dc0d4c3b3b14a3
parent60a6a10467f5b7d56c92fe8e4133a6af9e9bd48f (diff)
downloadopenbsd-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.311
-rw-r--r--src/lib/libcrypto/man/BN_copy.36
-rw-r--r--src/lib/libcrypto/man/BN_mod_mul_montgomery.37
-rw-r--r--src/lib/libcrypto/man/BN_set_flags.39
-rw-r--r--src/lib/libcrypto/man/BN_set_negative.35
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
108respectively. 108respectively.
109.Fn BN_is_odd 109.Fn BN_is_odd
110tests if a is odd. 110tests if a is odd.
111.Pp
112.Fn BN_is_zero ,
113.Fn BN_is_one ,
114.Fn BN_is_word ,
115and
116.Fn BN_is_odd
117are macros.
118.Sh RETURN VALUES 111.Sh RETURN VALUES
119.Fn BN_cmp 112.Fn BN_cmp
120returns -1 if 113returns -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
97It places significant restrictions on the copied data. 97It places significant restrictions on the copied data.
98Applications that do not adhere to these restrictions 98Applications that do not adhere to these restrictions
99may encounter unexpected side effects or crashes. 99may encounter unexpected side effects or crashes.
100For that reason, use of this macro is discouraged. 100For that reason, use of this function is discouraged.
101.Pp 101.Pp
102Any flags provided in 102Any 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
199is a macro.
200.Pp
201.Sy Warning : 198.Sy Warning :
202The inputs must be reduced modulo 199The 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
115argument has the same syntax as for 115argument has the same syntax as for
116.Fn BN_set_flags . 116.Fn BN_set_flags .
117.Pp
118These functions are currently implemented as macros, but they are
119likely to become real functions in the future when the
120.Vt BIGNUM
121data type will be made opaque.
122.Sh RETURN VALUES 117.Sh RETURN VALUES
123.Fn BN_get_flags 118.Fn BN_get_flags
124returns zero or more of the above constants, OR'ed together. 119returns 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
46tests the sign of 46tests the sign of
47.Fa b . 47.Fa b .
48It is currently implemented as a macro.
49.Sh RETURN VALUES 48.Sh RETURN VALUES
50.Fn BN_is_negative 49.Fn BN_is_negative
51returns 1 if 50returns 1 if