summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index 598038de1d..7982d23f06 100644
--- a/src/lib/libcrypto/ec/ec_lib.c
+++ b/src/lib/libcrypto/ec/ec_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_lib.c,v 1.122 2025/03/24 12:49:13 jsing Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.123 2025/03/24 13:07:04 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -1333,8 +1333,8 @@ EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
1333 * secret. This is why we ignore if BN_FLG_CONSTTIME is actually 1333 * secret. This is why we ignore if BN_FLG_CONSTTIME is actually
1334 * set and we always call the constant time version. 1334 * set and we always call the constant time version.
1335 */ 1335 */
1336 ret = group->meth->mul_single_ct(group, r, g_scalar, 1336 ret = group->meth->mul_single_ct(group, r,
1337 group->generator, ctx); 1337 g_scalar, group->generator, ctx);
1338 } else if (g_scalar == NULL && point != NULL && p_scalar != NULL) { 1338 } else if (g_scalar == NULL && point != NULL && p_scalar != NULL) {
1339 /* 1339 /*
1340 * In this case we want to compute p_scalar * GenericPoint: 1340 * In this case we want to compute p_scalar * GenericPoint:
@@ -1352,8 +1352,8 @@ EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
1352 * this codepath is reached most prominently by ECDSA signature 1352 * this codepath is reached most prominently by ECDSA signature
1353 * verification. So we call the non-ct version. 1353 * verification. So we call the non-ct version.
1354 */ 1354 */
1355 ret = group->meth->mul_double_nonct(group, r, g_scalar, 1355 ret = group->meth->mul_double_nonct(group, r,
1356 p_scalar, point, ctx); 1356 g_scalar, group->generator, p_scalar, point, ctx);
1357 } else { 1357 } else {
1358 /* Anything else is an error. */ 1358 /* Anything else is an error. */
1359 ECerror(ERR_R_EC_LIB); 1359 ECerror(ERR_R_EC_LIB);