From 26b650816d89ff1a1ec83b06dc914cc231a56342 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 6 Dec 2024 15:49:37 +0000 Subject: Rename ec_wNAF_mul() to ec_wnaf_mul() discussed with jsing --- src/lib/libcrypto/ec/ec_local.h | 4 ++-- src/lib/libcrypto/ec/ec_mult.c | 6 +++--- src/lib/libcrypto/ec/ecp_methods.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 9a5c42f866..da706d5324 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_local.h,v 1.41 2024/12/06 04:35:03 tb Exp $ */ +/* $OpenBSD: ec_local.h,v 1.42 2024/12/06 15:49:37 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -238,7 +238,7 @@ struct ec_point_st { } /* EC_POINT */; /* Compute r = generator * m + point * n in non-constant time. */ -int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, +int ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx); int ec_group_simple_order_bits(const EC_GROUP *group); diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index 0454a436a2..dc3997c3b8 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_mult.c,v 1.52 2024/12/06 15:39:59 tb Exp $ */ +/* $OpenBSD: ec_mult.c,v 1.53 2024/12/06 15:49:37 tb Exp $ */ /* * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. */ @@ -195,7 +195,7 @@ ec_compute_odd_multiples(const EC_GROUP *group, const EC_POINT *point, /* * Bring multiples held in wnaf0 and wnaf1 simultaneously into affine form - * so that the operations in the loop in ec_wNAF_mul() can take fast paths. + * so that the operations in the loop in ec_wnaf_mul() can take fast paths. */ static int @@ -317,7 +317,7 @@ ec_wnaf_multiple(struct ec_wnaf *wnaf, signed char digit) */ int -ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, +ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx) { struct ec_wnaf *wnaf[2] = { NULL, NULL }; diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index b14cd0b158..50607ea216 100644 --- a/src/lib/libcrypto/ec/ecp_methods.c +++ b/src/lib/libcrypto/ec/ecp_methods.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecp_methods.c,v 1.12 2024/11/30 21:09:59 tb Exp $ */ +/* $OpenBSD: ecp_methods.c,v 1.13 2024/12/06 15:49:37 tb Exp $ */ /* Includes code written by Lenka Fibikova * for the OpenSSL project. * Includes code written by Bodo Moeller for the OpenSSL project. @@ -1523,7 +1523,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, point, p_scalar, ctx); + return ec_wnaf_mul(group, r, g_scalar, point, p_scalar, ctx); } static void -- cgit v1.2.3-55-g6feb