diff options
| author | J08nY | 2019-11-21 19:10:50 +0100 |
|---|---|---|
| committer | J08nY | 2019-11-21 19:10:50 +0100 |
| commit | c8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (patch) | |
| tree | 2b3029c6ca37e56e86daa34069ab39da3b1a5400 /pyecsca/codegen/formulas.h | |
| download | pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.gz pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.zst pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.zip | |
Initialize.
Diffstat (limited to 'pyecsca/codegen/formulas.h')
| -rw-r--r-- | pyecsca/codegen/formulas.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pyecsca/codegen/formulas.h b/pyecsca/codegen/formulas.h new file mode 100644 index 0000000..1566f98 --- /dev/null +++ b/pyecsca/codegen/formulas.h @@ -0,0 +1,16 @@ +#ifndef FORMULAS_H_ +#define FORMULAS_H_ + +int point_add(point_t *one, point_t *other, curve_t *curve, point_t *out); + +int point_dbl(point_t *one, curve_t *curve, point_t *out); + +int point_neg(point_t *one, curve_t *curve, point_t *out); + +int point_scl(point_t *one, curve_t *curve, point_t *out); + +int point_dadd(point_t *one, point_t *other, point_t *diff, curve_t *curve, point_t *out); + +int point_ldr(point_t *one, point_t *other, point_t *diff, curve_t *curve, point_t *out_one, point_t *out_other); + +#endif //FORMULAS_H_
\ No newline at end of file |
