summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ec/ecp_methods.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-11-16 15:32:09 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-11-16 15:32:09 +0000
commitcae5e4d27d0174ef5af5bf2f777aa236eeca9335 (patch)
tree3c018edee9f7605bf687f51380021bfad9848b5a /lib/libcrypto/ec/ecp_methods.c
parentbbab9dc78c82fe8745bf14259991978e1b6237dc (diff)
Simplify signature of ec_wNAF_mul()
The only caller passes in num = 1 and is itself called in a path that ensures that the multiplier of the generator is != NULL. Consequently we don't need to deal with an array of points and an array of scalars so rename them accordingly. In addition, the change implies that numblocks and num_scalar are now always 1, so inline this information and take a first step towards disentangling this gordian knot. ok jsing
Diffstat (limited to 'lib/libcrypto/ec/ecp_methods.c')
-rw-r--r--lib/libcrypto/ec/ecp_methods.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ecp_methods.c b/lib/libcrypto/ec/ecp_methods.c
index 61f95b5bb9f..1b763cf219c 100644
--- a/lib/libcrypto/ec/ecp_methods.c
+++ b/lib/libcrypto/ec/ecp_methods.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecp_methods.c,v 1.7 2024/11/12 13:09:54 tb Exp $ */
+/* $OpenBSD: ecp_methods.c,v 1.8 2024/11/16 15:32:08 tb Exp $ */
/* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
* for the OpenSSL project.
* Includes code written by Bodo Moeller for the OpenSSL project.
@@ -1604,7 +1604,7 @@ static int
ec_mul_double_nonct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *ctx)
{
- return ec_wNAF_mul(group, r, g_scalar, 1, &point, &p_scalar, ctx);
+ return ec_wNAF_mul(group, r, g_scalar, point, p_scalar, ctx);
}
static void