From b602400a52ff42f64faf495a9e46dbb17c86a472 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 30 Nov 2025 18:02:02 +0100 Subject: Fix equivalence to pyecsca mults. --- pyecsca/codegen/templates/mult_comb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyecsca/codegen/templates/mult_comb.c') diff --git a/pyecsca/codegen/templates/mult_comb.c b/pyecsca/codegen/templates/mult_comb.c index 1fbb5a3..d656876 100644 --- a/pyecsca/codegen/templates/mult_comb.c +++ b/pyecsca/codegen/templates/mult_comb.c @@ -12,7 +12,7 @@ static void scalar_mult_inner(bn_t *scalar, point_t *point, curve_t *curve, poin point_t *current = point_copy(point); for (int i = 0; i < {{ scalarmult.width }}; i++) { base_points[i] = point_copy(current); - if (i != d - 1) { + if (i != {{ scalarmult.width }} - 1) { for (int j = 0; j < d; j++) { point_dbl(current, curve, current); } -- cgit v1.3.1