From b3e45bf773cec6ecf3f2a702c0b48c9dbfab0c04 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 2 Mar 2020 00:03:57 +0100 Subject: Add reduction functions, add global trigger for whole cmd. --- pyecsca/codegen/templates/mult.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'pyecsca/codegen/templates/mult.c') diff --git a/pyecsca/codegen/templates/mult.c b/pyecsca/codegen/templates/mult.c index f611e95..0603bc0 100644 --- a/pyecsca/codegen/templates/mult.c +++ b/pyecsca/codegen/templates/mult.c @@ -27,4 +27,14 @@ {% include "mult_bnaf.c" %} -{%- endif -%} +{%- endif %} + + +#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") }} + scalar_mult_inner(scalar, point, curve, out); + {{ end_action("mult") }} +} \ No newline at end of file -- cgit v1.3.1