aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/point.h
diff options
context:
space:
mode:
authorJ08nY2020-02-28 15:03:36 +0100
committerJ08nY2020-02-28 15:03:36 +0100
commitb387d00511a03dc20e15ac55fcbf07f3dfa79ce0 (patch)
tree6f7c7cb0168366b2862a6e42e20067652cbc443b /pyecsca/codegen/point.h
parent4eafe2d49fc7406861609c5af12b850741bbe5a0 (diff)
downloadpyecsca-codegen-b387d00511a03dc20e15ac55fcbf07f3dfa79ce0.tar.gz
pyecsca-codegen-b387d00511a03dc20e15ac55fcbf07f3dfa79ce0.tar.zst
pyecsca-codegen-b387d00511a03dc20e15ac55fcbf07f3dfa79ce0.zip
Update libtommath, use multi init and clear.
Diffstat (limited to 'pyecsca/codegen/point.h')
-rw-r--r--pyecsca/codegen/point.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyecsca/codegen/point.h b/pyecsca/codegen/point.h
index 1711e42..739078c 100644
--- a/pyecsca/codegen/point.h
+++ b/pyecsca/codegen/point.h
@@ -20,31 +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);
+bool 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);
+bool 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);
+bool 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);
+bool 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);
+bool 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);
+bool 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);
+bool point_ladd_init(void);
void point_ladd_clear(void);
#endif //POINT_H_ \ No newline at end of file