summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/arch/powerpc
diff options
context:
space:
mode:
authorjsing <>2025-08-30 07:54:27 +0000
committerjsing <>2025-08-30 07:54:27 +0000
commit694b88dc8ad458db9997e90128806a423fec09db (patch)
treeb32cfc481059f60610a60af1e8974af46557ef41 /src/lib/libcrypto/bn/arch/powerpc
parent3adccdb355e2f651255227b11a6324730cb85e48 (diff)
downloadopenbsd-694b88dc8ad458db9997e90128806a423fec09db.tar.gz
openbsd-694b88dc8ad458db9997e90128806a423fec09db.tar.bz2
openbsd-694b88dc8ad458db9997e90128806a423fec09db.zip
Rename bn_mul_words()/bn_mul_add_words().
Most bn_.*_words() functions operate on two word arrays, however bn_mul_words() and bn_mul_add_words() operate on one word array and multiply by a single word. Rename these to bn_mulw_words() and bn_mulw_add_words() to reflect this, following naming scheme that we use for primitives. This frees up bn_mul_words() to actually be used for multiplying two word arrays. Rename bn_mul_normal() to bn_mul_words(), which will then become one of the possible assembly integration points. ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/arch/powerpc')
-rw-r--r--src/lib/libcrypto/bn/arch/powerpc/bn_arch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h b/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h
index 46e932a2d5..fdddedaf4f 100644
--- a/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h
+++ b/src/lib/libcrypto/bn/arch/powerpc/bn_arch.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_arch.h,v 1.6 2023/01/23 12:17:58 jsing Exp $ */ 1/* $OpenBSD: bn_arch.h,v 1.7 2025/08/30 07:54:27 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -24,10 +24,10 @@
24 24
25#define HAVE_BN_DIV_WORDS 25#define HAVE_BN_DIV_WORDS
26 26
27#define HAVE_BN_MUL_ADD_WORDS
28#define HAVE_BN_MUL_COMBA4 27#define HAVE_BN_MUL_COMBA4
29#define HAVE_BN_MUL_COMBA8 28#define HAVE_BN_MUL_COMBA8
30#define HAVE_BN_MUL_WORDS 29#define HAVE_BN_MULW_ADD_WORDS
30#define HAVE_BN_MULW_WORDS
31 31
32#define HAVE_BN_SQR_COMBA4 32#define HAVE_BN_SQR_COMBA4
33#define HAVE_BN_SQR_COMBA8 33#define HAVE_BN_SQR_COMBA8