]> git.codecow.com Git - Monocypher.git/commit
Easier to use ge_madd() and ge_msub()
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 23 Jan 2020 22:27:47 +0000 (23:27 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 23 Jan 2020 22:27:47 +0000 (23:27 +0100)
commitcf46e1706e2686620d7ac7ee1885deb206be6e8d
treed6492be16e8e201bcd575de5ad2df0430e3b29fa
parentf15b704d4e7941f67db5f37b498b34149c650fe2
Easier to use ge_madd() and ge_msub()

There are two main changes:

1. ge_madd() and ge_msub() now take a ge_precomp as second argument.
2. ge_msub() can now process secrets.

The pre-computed table have been adjusted accordingly. They're now
arrays of ge_precomp instead of being multiple arrays of fe.

We can also expect a (mostly negligible) performance increase:

- The new tables have slightly better locality.
- ge_msub() is the mirror of ge_madd() instead of using it.
- Using ge_msub() for signatures is now slightly more direct.
src/monocypher.c