]> git.codecow.com Git - Monocypher.git/commit
EdDSA: defined ge_msub() in terms of ge_madd()
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 17 Jul 2021 23:24:39 +0000 (01:24 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 17 Jul 2021 23:24:39 +0000 (01:24 +0200)
commit6bcf78f7c9a802eba9ae0a549a784bbadfb382f7
tree346b388f106200ec3131d5826781e96eaf24d394
parent1497bdb34dd7081d89532eb529c4c18e42f8c414
EdDSA: defined ge_msub() in terms of ge_madd()

Previous changes caused ge_msub() to only be used for signature
verification (it was previously used for signature generation as well,
but this hurted readability).  It thus became reasonable to use
temporary buffers, since we no longer have to wipe them (at a sizeable
performance cost).

The trick is the same as how ge_sub() is defined in terms of ge_add().
This saves 9 lines of code, and the performance cost is negligible.
src/monocypher.c