diff options
| author | J08nY | 2020-02-28 17:25:51 +0100 |
|---|---|---|
| committer | J08nY | 2020-02-28 17:35:08 +0100 |
| commit | 0341d359dc67ced3f1e65d1d11af3590c1f0992f (patch) | |
| tree | 660140e64e8abe7647554e1424b1678a3ab98631 /pyecsca/codegen/templates/mult_diff_ldr.c | |
| parent | b387d00511a03dc20e15ac55fcbf07f3dfa79ce0 (diff) | |
| download | pyecsca-codegen-0341d359dc67ced3f1e65d1d11af3590c1f0992f.tar.gz pyecsca-codegen-0341d359dc67ced3f1e65d1d11af3590c1f0992f.tar.zst pyecsca-codegen-0341d359dc67ced3f1e65d1d11af3590c1f0992f.zip | |
Add dynamic triggering.
Diffstat (limited to 'pyecsca/codegen/templates/mult_diff_ldr.c')
| -rw-r--r-- | pyecsca/codegen/templates/mult_diff_ldr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyecsca/codegen/templates/mult_diff_ldr.c b/pyecsca/codegen/templates/mult_diff_ldr.c index 2683116..3dd445e 100644 --- a/pyecsca/codegen/templates/mult_diff_ldr.c +++ b/pyecsca/codegen/templates/mult_diff_ldr.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(&curve->neutral); point_t *p1 = point_copy(point); {%- if scalarmult.complete %} @@ -26,4 +29,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 |
