]> git.codecow.com Git - Monocypher.git/commit
Ported SAGE script to Python3
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 17 Feb 2020 23:03:29 +0000 (00:03 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 17 Feb 2020 23:11:33 +0000 (00:11 +0100)
commitad52ae82b020492b5e58066a0f8543f392bd395b
treeb40b38c027c3ed74a46b46ef0f7fb91e0dd0f0a5
parent2d19882eda636693faad0ad5509d9171c45a2088
Ported SAGE script to Python3

Turned out SAGE wasn't really needed. Python already has all we need,
and the differences are minimal.  Cryptographers will be able to read
the Python code as easily as SAGE.

The disadvantage is that Python3's arithmetic is twice as slow.
The advantage is that Python3 is ubiquitous, and can reasonably be
required to generate test vectors.
tests/gen/elligator.py [moved from tests/gen/elligator.sage with 80% similarity]