diff options
Diffstat (limited to 'pyecsca/codegen/templates/formula_scl.c')
| -rw-r--r-- | pyecsca/codegen/templates/formula_scl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pyecsca/codegen/templates/formula_scl.c b/pyecsca/codegen/templates/formula_scl.c index b5db4d7..b49fa8a 100644 --- a/pyecsca/codegen/templates/formula_scl.c +++ b/pyecsca/codegen/templates/formula_scl.c @@ -1,3 +1,10 @@ +#include "point.h" +{% import "ops.c" as ops %} + +{{ ops.render_static_init(allocations, initializations, formula.shortname) }} + +{{ ops.render_static_clear(frees, formula.shortname) }} + void point_scl(const point_t *one, const curve_t *curve, point_t *out_one) { {%- if short_circuit %} if (point_equals(one, curve->neutral)) { @@ -5,5 +12,6 @@ void point_scl(const point_t *one, const curve_t *curve, point_t *out_one) { return; } {%- endif %} - {%- include "ops.c" %} + {{ ops.render_ops(operations) }} + {{ ops.render_returns(returns) }} }
\ No newline at end of file |
