summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2025-08-31 09:34:51 +0000
committerjsing <>2025-08-31 09:34:51 +0000
commitdb246afaad7e4bbe59bd2805c624374b2f5f8f7d (patch)
tree35de1c31cb4cb73ae0b89e70d0333d7eb3834be4 /src
parentfaea853ea68887727c76f113f0487e95e8aa0738 (diff)
downloadopenbsd-db246afaad7e4bbe59bd2805c624374b2f5f8f7d.tar.gz
openbsd-db246afaad7e4bbe59bd2805c624374b2f5f8f7d.tar.bz2
openbsd-db246afaad7e4bbe59bd2805c624374b2f5f8f7d.zip
Reorder functions since they've been renamed.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/arch/amd64/bn_arch.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c
index ef8eeadec2..5f3549fc26 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.14 2025/08/30 07:54:27 jsing Exp $ */ 1/* $OpenBSD: bn_arch.c,v 1.15 2025/08/31 09:34:51 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -81,22 +81,6 @@ bn_mod_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
81} 81}
82#endif 82#endif
83 83
84#ifdef HAVE_BN_MULW_ADD_WORDS
85BN_ULONG
86bn_mulw_add_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w)
87{
88 return bignum_cmadd(num, (uint64_t *)rd, w, num, (const uint64_t *)ad);
89}
90#endif
91
92#ifdef HAVE_BN_MULW_WORDS
93BN_ULONG
94bn_mulw_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w)
95{
96 return bignum_cmul(num, (uint64_t *)rd, w, num, (const uint64_t *)ad);
97}
98#endif
99
100#ifdef HAVE_BN_MUL_COMBA4 84#ifdef HAVE_BN_MUL_COMBA4
101void 85void
102bn_mul_comba4(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd) 86bn_mul_comba4(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd)
@@ -142,6 +126,22 @@ bn_mul_comba8(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd)
142} 126}
143#endif 127#endif
144 128
129#ifdef HAVE_BN_MULW_ADD_WORDS
130BN_ULONG
131bn_mulw_add_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w)
132{
133 return bignum_cmadd(num, (uint64_t *)rd, w, num, (const uint64_t *)ad);
134}
135#endif
136
137#ifdef HAVE_BN_MULW_WORDS
138BN_ULONG
139bn_mulw_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w)
140{
141 return bignum_cmul(num, (uint64_t *)rd, w, num, (const uint64_t *)ad);
142}
143#endif
144
145#ifdef HAVE_BN_SQR_COMBA4 145#ifdef HAVE_BN_SQR_COMBA4
146void 146void
147bn_sqr_comba4(BN_ULONG *rd, const BN_ULONG *ad) 147bn_sqr_comba4(BN_ULONG *rd, const BN_ULONG *ad)