aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/templates/mult.c
diff options
context:
space:
mode:
authorAndrej Bátora2023-12-07 15:50:22 +0100
committerGitHub2023-12-07 15:50:22 +0100
commitf7a1d8cac5aafe98b89bfdea7744206dd6db84f5 (patch)
treee6038cca4dcab095006e4f9eab978d1ec5c19001 /pyecsca/codegen/templates/mult.c
parentb187a92f77a354039054a2f107565f69f4aff21f (diff)
parent4402971348d442d24693f1a7298662c476b9dcd3 (diff)
downloadpyecsca-codegen-f7a1d8cac5aafe98b89bfdea7744206dd6db84f5.tar.gz
pyecsca-codegen-f7a1d8cac5aafe98b89bfdea7744206dd6db84f5.tar.zst
pyecsca-codegen-f7a1d8cac5aafe98b89bfdea7744206dd6db84f5.zip
Merge branch 'J08nY:master' into fix/naming
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