summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/arch
diff options
context:
space:
mode:
authorjsing <>2025-09-01 15:33:23 +0000
committerjsing <>2025-09-01 15:33:23 +0000
commitedd4db8b24106490f82c1a694d4e2b35afe9c6cb (patch)
tree85f07d168195bfa52fb5268fa756de3a280f046a /src/lib/libcrypto/bn/arch
parenta71d96fc5f06e3d4eaad85e2958a525f4f6fd26e (diff)
downloadopenbsd-edd4db8b24106490f82c1a694d4e2b35afe9c6cb.tar.gz
openbsd-edd4db8b24106490f82c1a694d4e2b35afe9c6cb.tar.bz2
openbsd-edd4db8b24106490f82c1a694d4e2b35afe9c6cb.zip
Constify bn_mul_words().
Diffstat (limited to 'src/lib/libcrypto/bn/arch')
-rw-r--r--src/lib/libcrypto/bn/arch/amd64/bn_arch.c5
1 files changed, 3 insertions, 2 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);