diff options
| author | J08nY | 2019-11-25 17:45:35 +0100 |
|---|---|---|
| committer | J08nY | 2019-11-25 17:45:35 +0100 |
| commit | 8a56c7a95e662862cfe78b834ccb091e95d5372f (patch) | |
| tree | 1fd57480b7fc681f00c0bfb6c0e5cfea86762f87 /pyecsca/codegen/coords.h | |
| parent | c8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (diff) | |
| download | pyecsca-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.h | 8 |
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); |
