]> git.codecow.com Git - Monocypher.git/commit
EdDSA no longer accepts all zero signatures
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 23 Jun 2018 18:34:48 +0000 (20:34 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 23 Jun 2018 19:04:52 +0000 (21:04 +0200)
commitaa38f41f6276b4c3cac43563055e6dde2e67b109
tree6c6905d80fb0d19a4f19aaa96f51a7a40db5d1ac
parent1139fd2e6acb1ed61a12f4e2481c8c11bc3e373a
EdDSA no longer accepts all zero signatures

This fixes the critical vulnerability in commit
e4cbf84384ffdce194895078c88680be0c341d76 (compute signatures in
Montgomery space (faster)), somewhere between versions 0.8 and 1.0, and
detected by the tests in the parent commit.

The fix basically reverts the optimisation, effectively halving the
performance of EdDSA.

It appears the conversion to Montgomery space and back didn't handle
every edge case correctly.  That optimisation will be re-introduced once
the issue has been fully understood.  This will probably require expert
advice.
src/monocypher.c