-.\" $OpenBSD: BN_add.3,v 1.13 2018/04/29 15:58:21 schwarze Exp $
+.\" $OpenBSD: BN_add.3,v 1.14 2021/11/30 18:34:35 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 29 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_ADD 3
.Os
.Sh NAME
.Ft int
.Fo BN_mul
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_sqr
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Ft int
.Fo BN_mod_add
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "const BIGNUM *m"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_mod_sub
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "const BIGNUM *m"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_mod_mul
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "const BIGNUM *m"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_mod_sqr
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "const BIGNUM *m"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_exp
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *p"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *p"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_mod_exp
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "const BIGNUM *p"
.Fa "const BIGNUM *m"
.Fa "BN_CTX *ctx"
.Ft int
.Fo BN_gcd
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "BN_CTX *ctx"
.Fc
.Sh DESCRIPTION
-.\" $OpenBSD: BN_cmp.3,v 1.6 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: BN_cmp.3,v 1.7 2021/11/30 18:34:35 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_CMP 3
.Os
.Sh NAME
.In openssl/bn.h
.Ft int
.Fo BN_cmp
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fc
.Ft int
.Fo BN_ucmp
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fc
.Ft int
.Fo BN_is_zero
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fc
.Ft int
.Fo BN_is_one
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fc
.Ft int
.Fo BN_is_word
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "BN_ULONG w"
.Fc
.Ft int
.Fo BN_is_odd
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fc
.Sh DESCRIPTION
.Fn BN_cmp
-.\" $OpenBSD: BN_mod_inverse.3,v 1.10 2018/04/29 15:58:21 schwarze Exp $
+.\" $OpenBSD: BN_mod_inverse.3,v 1.11 2021/11/30 18:34:35 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 29 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_MOD_INVERSE 3
.Os
.Sh NAME
.Ft BIGNUM *
.Fo BN_mod_inverse
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "const BIGNUM *n"
.Fa "BN_CTX *ctx"
.Fc
-.\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.11 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.12 2021/11/30 18:34:35 tb Exp $
.\" OpenSSL 6859cf74 Sep 25 13:33:28 2002 +0000
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_MOD_MUL_MONTGOMERY 3
.Os
.Sh NAME
.Ft int
.Fo BN_mod_mul_montgomery
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "BN_MONT_CTX *mont"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_from_montgomery
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "BN_MONT_CTX *mont"
.Fa "BN_CTX *ctx"
.Fc
.Ft int
.Fo BN_to_montgomery
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "BN_MONT_CTX *mont"
.Fa "BN_CTX *ctx"
.Fc
-.\" $OpenBSD: BN_mod_mul_reciprocal.3,v 1.10 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: BN_mod_mul_reciprocal.3,v 1.11 2021/11/30 18:34:35 tb Exp $
.\" OpenSSL 6859cf74 Sep 25 13:33:28 2002 +0000
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_MOD_MUL_RECIPROCAL 3
.Os
.Sh NAME
.Ft int
.Fo BN_mod_mul_reciprocal
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
-.Fa "BIGNUM *b"
+.Fa "const BIGNUM *a"
+.Fa "const BIGNUM *b"
.Fa "BN_RECP_CTX *recp"
.Fa "BN_CTX *ctx"
.Fc
.Fo BN_div_recp
.Fa "BIGNUM *dv"
.Fa "BIGNUM *rem"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "BN_RECP_CTX *recp"
.Fa "BN_CTX *ctx"
.Fc
-.\" $OpenBSD: BN_rand.3,v 1.17 2021/09/10 14:37:14 tb Exp $
+.\" $OpenBSD: BN_rand.3,v 1.18 2021/11/30 18:34:35 tb Exp $
.\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400
.\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100
.\"
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 10 2021 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_RAND 3
.Os
.Sh NAME
.Ft int
.Fo BN_rand_range
.Fa "BIGNUM *rnd"
-.Fa "BIGNUM *range"
+.Fa "const BIGNUM *range"
.Fc
.Sh DESCRIPTION
.Fn BN_rand
-.\" $OpenBSD: BN_set_bit.3,v 1.7 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: BN_set_bit.3,v 1.8 2021/11/30 18:34:35 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_SET_BIT 3
.Os
.Sh NAME
.Ft int
.Fo BN_lshift1
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fc
.Ft int
.Fo BN_rshift
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fa "int n"
.Fc
.Ft int
.Fo BN_rshift1
.Fa "BIGNUM *r"
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fc
.Sh DESCRIPTION
.Fn BN_set_bit
-.\" $OpenBSD: BN_zero.3,v 1.9 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: BN_zero.3,v 1.10 2021/11/30 18:34:35 tb Exp $
.\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400
.\" selective merge up to: OpenSSL b713c4ff Jan 22 14:41:09 2018 -0500
.\"
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: November 30 2021 $
.Dt BN_ZERO 3
.Os
.Sh NAME
.Fc
.Ft BN_ULONG
.Fo BN_get_word
-.Fa "BIGNUM *a"
+.Fa "const BIGNUM *a"
.Fc
.Sh DESCRIPTION
.Vt BN_ULONG