aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/templates/mult_coron.c
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/codegen/templates/mult_coron.c')
-rw-r--r--pyecsca/codegen/templates/mult_coron.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pyecsca/codegen/templates/mult_coron.c b/pyecsca/codegen/templates/mult_coron.c
index a2b1085..05e6804 100644
--- a/pyecsca/codegen/templates/mult_coron.c
+++ b/pyecsca/codegen/templates/mult_coron.c
@@ -1,10 +1,7 @@
#include "mult.h"
#include "point.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") }}
+void scalar_mult_inner(bn_t *scalar, point_t *point, curve_t *curve, point_t *out) {
point_t *p0 = point_copy(point);
point_t *p1 = point_new();
@@ -22,5 +19,4 @@ void scalar_mult(bn_t *scalar, point_t *point, curve_t *curve, point_t *out) {
point_set(p0, out);
point_free(p0);
point_free(p1);
- {{ end_action("mult") }}
} \ No newline at end of file