crypto.rs icon indicating copy to clipboard operation
crypto.rs copied to clipboard

Ed25519: Improve tests

Open Wollac opened this issue 3 years ago • 2 comments

  • Use officially provided test vectors in https://ed25519.cr.yp.to/python/sign.input
  • Add tests for all of the 14x14 = 196 critical inputs mentioned in https://hdevalence.ca/blog/2020-10-04-its-25519am
  • Add tests that third party malleability is correctly rejected, i.e. reject values for S that are greater or equal than L (https://tools.ietf.org/html/rfc8032#section-5.1.7).

Wollac avatar Nov 19 '20 18:11 Wollac

can you confirm that this has been done to your satisfaction @Wollac ?

nothingismagick avatar Dec 16 '20 14:12 nothingismagick

I don't think anything has changed since I've opened this issues, as far as I know...

As far as I can see, ed25519.rs contains test vectors generated with utils/test_vectors/py/main.py but not those particular classes mentioned here. IMHO they would still be great to have.

Wollac avatar Dec 16 '20 15:12 Wollac