summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/arch/amd64/bn_arch.c5
-rw-r--r--src/lib/libcrypto/bn/bn_local.h5
-rw-r--r--src/lib/libcrypto/bn/bn_mul.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c
index 0fe6070efa..6c3888687b 100644
--- a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c
+++ b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_arch.c,v 1.16 2025/09/01 15:15:44 jsing Exp $ */ 1/* $OpenBSD: bn_arch.c,v 1.17 2025/09/01 15:33:23 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -128,7 +128,8 @@ bn_mul_comba8(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd)
128 128
129#ifdef HAVE_BN_MUL_WORDS 129#ifdef HAVE_BN_MUL_WORDS
130void 130void
131bn_mul_words(BN_ULONG *r, BN_ULONG *a, int a_len, BN_ULONG *b, int b_len) 131bn_mul_words(BN_ULONG *r, const BN_ULONG *a, int a_len, const BN_ULONG *b,
132 int b_len)
132{ 133{
133 bignum_mul(a_len + b_len, (uint64_t *)r, a_len, (const uint64_t *)a, 134 bignum_mul(a_len + b_len, (uint64_t *)r, a_len, (const uint64_t *)a,
134 b_len, (const uint64_t *)b); 135 b_len, (const uint64_t *)b);
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h
index 0356c4c00f..0df4b7f32e 100644
--- a/src/lib/libcrypto/bn/bn_local.h
+++ b/src/lib/libcrypto/bn/bn_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_local.h,v 1.57 2025/08/31 09:33:30 jsing Exp $ */ 1/* $OpenBSD: bn_local.h,v 1.58 2025/09/01 15:33:23 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -242,7 +242,8 @@ BN_ULONG bn_sub(BN_ULONG *r, int r_len, const BN_ULONG *a, int a_len,
242void bn_mul_comba4(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b); 242void bn_mul_comba4(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);
243void bn_mul_comba6(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b); 243void bn_mul_comba6(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);
244void bn_mul_comba8(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b); 244void bn_mul_comba8(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);
245void bn_mul_words(BN_ULONG *r, BN_ULONG *a, int a_len, BN_ULONG *b, int b_len); 245void bn_mul_words(BN_ULONG *r, const BN_ULONG *a, int a_len, const BN_ULONG *b,
246 int b_len);
246 247
247void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a); 248void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a);
248void bn_sqr_comba6(BN_ULONG *r, const BN_ULONG *a); 249void bn_sqr_comba6(BN_ULONG *r, const BN_ULONG *a);
diff --git a/src/lib/libcrypto/bn/bn_mul.c b/src/lib/libcrypto/bn/bn_mul.c
index 6ba05f2eba..383ba795dd 100644
--- a/src/lib/libcrypto/bn/bn_mul.c
+++ b/src/lib/libcrypto/bn/bn_mul.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mul.c,v 1.44 2025/08/30 07:54:27 jsing Exp $ */ 1/* $OpenBSD: bn_mul.c,v 1.45 2025/09/01 15:33:23 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -323,7 +323,8 @@ bn_mulw_add_words(BN_ULONG *r, const BN_ULONG *a, int num, BN_ULONG w)
323 323
324#ifndef HAVE_BN_MUL_WORDS 324#ifndef HAVE_BN_MUL_WORDS
325void 325void
326bn_mul_words(BN_ULONG *r, BN_ULONG *a, int a_len, BN_ULONG *b, int b_len) 326bn_mul_words(BN_ULONG *r, const BN_ULONG *a, int a_len, const BN_ULONG *b,
327 int b_len)
327{ 328{
328 BN_ULONG *rr; 329 BN_ULONG *rr;
329 330