]> git.codecow.com Git - Monocypher.git/commit
Less error prone EdDSA verification building blocks
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 7 Dec 2022 18:39:02 +0000 (19:39 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 7 Dec 2022 18:39:02 +0000 (19:39 +0100)
commit0fae6db267363a9cfc1a763fc50afae641e720da
treef2765e746e2a2f43c11cf1d69c5840ca0db137f5
parentf584a80b5929552506c472659cf8a055a74b105a
Less error prone EdDSA verification building blocks

crypto_eddsa_r_check() is replaced by crypto_eddsa_check_equation().
This has two advantages:

- Users now only need to return the value of crypto_eddsa_r_check().
  No need for an additional check we may forget, much safer.
- Verifying the equation give better optimisation opportunities.
src/monocypher.c
src/monocypher.h
src/optional/monocypher-ed25519.c