aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/coords.h
diff options
context:
space:
mode:
authorJ08nY2019-11-25 17:45:35 +0100
committerJ08nY2019-11-25 17:45:35 +0100
commit8a56c7a95e662862cfe78b834ccb091e95d5372f (patch)
tree1fd57480b7fc681f00c0bfb6c0e5cfea86762f87 /pyecsca/codegen/coords.h
parentc8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (diff)
downloadpyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.tar.gz
pyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.tar.zst
pyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.zip
Add libtommath, HOST build, and a simple PRNG.
Diffstat (limited to 'pyecsca/codegen/coords.h')
-rw-r--r--pyecsca/codegen/coords.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyecsca/codegen/coords.h b/pyecsca/codegen/coords.h
index 9f3323d..751aeb6 100644
--- a/pyecsca/codegen/coords.h
+++ b/pyecsca/codegen/coords.h
@@ -10,6 +10,14 @@ typedef struct {
} point_t;
*/
+point_t *point_new();
+
+point_t *point_copy(const point_t *from);
+
+void point_set(const point_t *from, point_t *out);
+
+void point_free(point_t *point);
+
int point_to_affine(point_t *point, const char coord, curve_t *curve, bn_t *out);
int point_from_affine(bn_t *x, bn_t *y, curve_t *curve, point_t *out);