diff options
| author | J08nY | 2020-07-01 23:08:43 +0200 |
|---|---|---|
| committer | J08nY | 2020-07-01 23:09:30 +0200 |
| commit | 2aa191c63c556857ee22e801c19ee9822016f7cc (patch) | |
| tree | 8824b678714c71979c4f8579c9cf782a6fadcc5e /pyecsca/ec/efd/twisted | |
| parent | 3eaaed8ff2dfa36ad31884bc4cb0f45e0bf8f427 (diff) | |
| download | pyecsca-2aa191c63c556857ee22e801c19ee9822016f7cc.tar.gz pyecsca-2aa191c63c556857ee22e801c19ee9822016f7cc.tar.zst pyecsca-2aa191c63c556857ee22e801c19ee9822016f7cc.zip | |
Add random generation of points, speedup computation.
Diffstat (limited to 'pyecsca/ec/efd/twisted')
| -rw-r--r-- | pyecsca/ec/efd/twisted/coordinates | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pyecsca/ec/efd/twisted/coordinates b/pyecsca/ec/efd/twisted/coordinates index 1a0d32d..bf62fff 100644 --- a/pyecsca/ec/efd/twisted/coordinates +++ b/pyecsca/ec/efd/twisted/coordinates @@ -4,6 +4,7 @@ parameter d coordinate x coordinate y satisfying a*x^2+y^2 == 1+d*x^2*y^2 +ysquared (a*x^2-1)/(d*x^2-1) addition x = (x1*y2+y1*x2)/(1+d*x1*x2*y1*y2) addition y = (y1*y2-a*x1*x2)/(1-d*x1*x2*y1*y2) doubling x = (x1*y1+y1*x1)/(1+d*x1*x1*y1*y1) |
