From c8d0bff46001bd5636825c5b0bb4c896cb34a4e6 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 21 Nov 2019 19:10:50 +0100 Subject: Initialize. --- pyecsca/codegen/formulas.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pyecsca/codegen/formulas.h (limited to 'pyecsca/codegen/formulas.h') 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 -- cgit v1.3.1