aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/point.h
diff options
context:
space:
mode:
authorJ08nY2020-02-20 15:06:18 +0100
committerJ08nY2020-02-20 15:06:18 +0100
commit92cb16e8103da998aa1bf226d24ef6771a92c5d5 (patch)
tree760e5f4921e8813b29748e7353a32168d99140cc /pyecsca/codegen/point.h
parent5da1d167c203395103d220c450e29fece08f4198 (diff)
downloadpyecsca-codegen-92cb16e8103da998aa1bf226d24ef6771a92c5d5.tar.gz
pyecsca-codegen-92cb16e8103da998aa1bf226d24ef6771a92c5d5.tar.zst
pyecsca-codegen-92cb16e8103da998aa1bf226d24ef6771a92c5d5.zip
Allocate and initialize formula variables only once.
Diffstat (limited to 'pyecsca/codegen/point.h')
-rw-r--r--pyecsca/codegen/point.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/pyecsca/codegen/point.h b/pyecsca/codegen/point.h
index f85a818..1711e42 100644
--- a/pyecsca/codegen/point.h
+++ b/pyecsca/codegen/point.h
@@ -20,17 +20,31 @@ void point_to_affine(const point_t *point, const curve_t *curve, bn_t *out_x, bn
void point_from_affine(bn_t *x, bn_t *y, const curve_t *curve, point_t *out);
void point_add(const point_t *one, const point_t *other, const curve_t *curve, point_t *out_one);
+void point_add_init(void);
+void point_add_clear(void);
void point_dbl(const point_t *one, const curve_t *curve, point_t *out_one);
+void point_dbl_init(void);
+void point_dbl_clear(void);
void point_tpl(const point_t *one, const curve_t *curve, point_t *out_one);
+void point_tpl_init(void);
+void point_tpl_clear(void);
void point_neg(const point_t *one, const curve_t *curve, point_t *out_one);
+void point_neg_init(void);
+void point_neg_clear(void);
void point_scl(const point_t *one, const curve_t *curve, point_t *out_one);
+void point_scl_init(void);
+void point_scl_clear(void);
void point_dadd(const point_t *one, const point_t *other, const point_t *diff, const curve_t *curve, point_t *out_one);
+void point_dadd_init(void);
+void point_dadd_clear(void);
void point_ladd(const point_t *one, const point_t *other, const point_t *diff, const curve_t *curve, point_t *out_one, point_t *out_other);
+void point_ladd_init(void);
+void point_ladd_clear(void);
#endif //POINT_H_ \ No newline at end of file