diff options
| author | J08nY | 2020-02-19 18:29:53 +0100 |
|---|---|---|
| committer | J08nY | 2020-02-19 18:29:53 +0100 |
| commit | 5da1d167c203395103d220c450e29fece08f4198 (patch) | |
| tree | fdc8fb7f0fbf2d2aaab46c2cb8a90a8176058292 /pyecsca/codegen/point.h | |
| parent | f04c640c05e9ffe894f67194832623e28a8000f5 (diff) | |
| download | pyecsca-codegen-5da1d167c203395103d220c450e29fece08f4198.tar.gz pyecsca-codegen-5da1d167c203395103d220c450e29fece08f4198.tar.zst pyecsca-codegen-5da1d167c203395103d220c450e29fece08f4198.zip | |
Flesh out client, add implementation tests.
Diffstat (limited to 'pyecsca/codegen/point.h')
| -rw-r--r-- | pyecsca/codegen/point.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyecsca/codegen/point.h b/pyecsca/codegen/point.h index 1b7e8e1..f85a818 100644 --- a/pyecsca/codegen/point.h +++ b/pyecsca/codegen/point.h @@ -13,9 +13,11 @@ void point_free(point_t *point); bool point_equals(const point_t *one, const point_t *other); -void point_to_affine(point_t *point, curve_t *curve, bn_t *out_x, bn_t *out_y); +bool point_equals_affine(const point_t *one, const point_t *other, const curve_t *curve); -void point_from_affine(bn_t *x, bn_t *y, curve_t *curve, point_t *out); +void point_to_affine(const point_t *point, const curve_t *curve, bn_t *out_x, bn_t *out_y); + +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); |
