summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/ec/ec_mult.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c
index a74c00d7dc..d810879d68 100644
--- a/src/lib/libcrypto/ec/ec_mult.c
+++ b/src/lib/libcrypto/ec/ec_mult.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_mult.c,v 1.32 2024/11/10 00:46:57 tb Exp $ */ 1/* $OpenBSD: ec_mult.c,v 1.33 2024/11/10 05:59:35 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. 3 * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -350,8 +350,11 @@ ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
350 goto err; 350 goto err;
351 351
352 /* 352 /*
353 * prepare precomputed values: val_sub[i][0] := points[i] 353 * prepare precomputed values:
354 * val_sub[i][1] := 3 * points[i] val_sub[i][2] := 5 * points[i] ... 354 * val_sub[i][0] := points[i]
355 * val_sub[i][1] := 3 * points[i]
356 * val_sub[i][2] := 5 * points[i]
357 * ...
355 */ 358 */
356 for (i = 0; i < num + num_scalar; i++) { 359 for (i = 0; i < num + num_scalar; i++) {
357 if (i < num) { 360 if (i < num) {