aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/templates/mult.c
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/codegen/templates/mult.c')
-rw-r--r--pyecsca/codegen/templates/mult.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyecsca/codegen/templates/mult.c b/pyecsca/codegen/templates/mult.c
index 22a385d..0144e36 100644
--- a/pyecsca/codegen/templates/mult.c
+++ b/pyecsca/codegen/templates/mult.c
@@ -53,12 +53,13 @@
{%- endif %}
-
+#include "formulas.h"
#include "action.h"
{% from "action.c" import start_action, end_action %}
void scalar_mult(bn_t *scalar, point_t *point, curve_t *curve, point_t *out) {
{{ start_action("mult") }}
+ formulas_zero();
scalar_mult_inner(scalar, point, curve, out);
{{ end_action("mult") }}
} \ No newline at end of file