diff options
Diffstat (limited to 'pyecsca/codegen/templates/mult_coron.c')
| -rw-r--r-- | pyecsca/codegen/templates/mult_coron.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyecsca/codegen/templates/mult_coron.c b/pyecsca/codegen/templates/mult_coron.c index d8e8a0d..a2b1085 100644 --- a/pyecsca/codegen/templates/mult_coron.c +++ b/pyecsca/codegen/templates/mult_coron.c @@ -1,7 +1,10 @@ #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") }} point_t *p0 = point_copy(point); point_t *p1 = point_new(); @@ -19,4 +22,5 @@ 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 |
