]> git.codecow.com Git - Monocypher.git/commit
Added Kleshni/Elligator-2 test vectors
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 28 Jun 2020 22:40:50 +0000 (00:40 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 28 Jun 2020 22:58:29 +0000 (00:58 +0200)
commite96bf96f8b1ef14db7694d0e8e9753d87a47e491
treed076a51d5971dde1ced3b0ff6c9133b503ef5ecc
parente25d853ac2ae58602160e089964d2f048475bc9d
Added Kleshni/Elligator-2 test vectors

An auditor recently told me about the following repository on GitHub:

  https://github.com/Kleshni/Elligator-2/

I was able to steal a couple test vectors from them.  Not all of them
unfortunately:

- Some representative exceed 2^254, and Monocypher do not decode
  negative representatives.  Instead, it assumes it has a positive
  representative, and clears the two most significant bits before
  decoding.

- It is not clear yet what encoding does, and some points in the (few)
  test vectors have their most significant bit set. Monocypher ignores
  the most significant bit of curve point, basically assumes they are
  all below 2^255 - 19.  Adding those points will require tweaking
  similar to the tweaking applied to the Hash to Curve RFC draft test
  vectors.
tests/gen/vectors/elligator_dir