diff options
| author | J08nY | 2019-11-21 19:10:50 +0100 |
|---|---|---|
| committer | J08nY | 2019-11-21 19:10:50 +0100 |
| commit | c8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (patch) | |
| tree | 2b3029c6ca37e56e86daa34069ab39da3b1a5400 /pyecsca/codegen/coords.h | |
| download | pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.gz pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.zst pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.zip | |
Initialize.
Diffstat (limited to 'pyecsca/codegen/coords.h')
| -rw-r--r-- | pyecsca/codegen/coords.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pyecsca/codegen/coords.h b/pyecsca/codegen/coords.h new file mode 100644 index 0000000..9f3323d --- /dev/null +++ b/pyecsca/codegen/coords.h @@ -0,0 +1,17 @@ +#ifndef COORDS_H_ +#define COORDS_H_ + +//point_t definition is variable +/* +typedef struct { + bn_t X; + bn_t Y; + bn_t Z; +} point_t; +*/ + +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); + +#endif //COORDS_H_
\ No newline at end of file |
