diff options
| author | J08nY | 2020-03-02 00:03:57 +0100 |
|---|---|---|
| committer | J08nY | 2020-03-02 00:03:57 +0100 |
| commit | b3e45bf773cec6ecf3f2a702c0b48c9dbfab0c04 (patch) | |
| tree | 8a232cf9298772e88bfee7f39b973f0e9009cae3 /pyecsca/codegen/templates/mult.c | |
| parent | 0341d359dc67ced3f1e65d1d11af3590c1f0992f (diff) | |
| download | pyecsca-codegen-b3e45bf773cec6ecf3f2a702c0b48c9dbfab0c04.tar.gz pyecsca-codegen-b3e45bf773cec6ecf3f2a702c0b48c9dbfab0c04.tar.zst pyecsca-codegen-b3e45bf773cec6ecf3f2a702c0b48c9dbfab0c04.zip | |
Add reduction functions, add global trigger for whole cmd.
Diffstat (limited to 'pyecsca/codegen/templates/mult.c')
| -rw-r--r-- | pyecsca/codegen/templates/mult.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 |
