]> git.codecow.com Git - Monocypher.git/commit
Elligator script: use x25519_pk test vectors
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 21 Feb 2020 22:17:29 +0000 (23:17 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 21 Feb 2020 22:17:29 +0000 (23:17 +0100)
commit14dd101ddf72b85365e040d7feee4e4a8689909d
treef2e6d728a16c257108f3e7172a35ceb5dacd97ba
parent8ea8b7ed16826f371a27b9644980b171406b22d9
Elligator script: use x25519_pk test vectors

We're now reading the `x25519_pk.all.vec` generated by Libsodium in
`x25519.c`, to make sure scalarmult is correctly implemented in the
Python script.

While we're at it, we also use them to generate Elligator 2 vectors.
Any addition to the X25519 public key generation will automatically
benefit Elligator 2 as well

TODO: update the makefile to make sure the vectors are generated before
we run `elligator.py`
tests/gen/elligator.py