]> git.codecow.com Git - Monocypher.git/commit
Simplified GF(2^255-19) carry propagation
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 15 Apr 2020 19:23:42 +0000 (21:23 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 15 Apr 2020 19:23:42 +0000 (21:23 +0200)
commit4af1bc5d5b99498fc7da0faf94027c8d6bcb903f
treec57722c2647ad6293326651d5146392c2d282bd8
parentf2af4c9dcd354344e9324c196ff6fda984e29fef
Simplified GF(2^255-19) carry propagation

There used to be two ways to perform carry propagation: a "fast" one,
used after decoding and multiplication by small numbers, and a "safe"
one, more conservative, used after full multiplications or squarings.

Using the safe carry propagation simplifies the source code and
facilitates audits.  The cost is a 1% performance hit for X25519.
src/monocypher.c