]> git.codecow.com Git - Monocypher.git/commit
Elligator script: removed erroneous .abs()
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 20 Feb 2020 23:00:44 +0000 (00:00 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 20 Feb 2020 23:00:44 +0000 (00:00 +0100)
commit128b567c5a694521342e27ecd19c49a4fbf02ba0
treec17d81bf01d9f89cf904f4ec408e9590da589fee
parent21dec971f5fe31389713adaf9c7b3e4917bc9dad
Elligator script: removed erroneous .abs()

Changing the sign of the v coordinate had an effect on the final value
of the final hash, but wasn't detected because my initial tests only
compare to the u coordinate, which appears to be correct.

This doesn't affect the success or failure of the Elligator mapping,
which only look at the u coordinate.  Yet another example of incorrect
crypto that looks like it works...
tests/gen/elligator.py