crypto/ec/curve25519.c: remove redundant fe[51]_cswap.
authorAndy Polyakov <appro@openssl.org>
Mon, 19 Feb 2018 14:00:59 +0000 (15:00 +0100)
committerAndy Polyakov <appro@openssl.org>
Wed, 21 Feb 2018 09:12:55 +0000 (10:12 +0100)
commit127d6cf747652a182636597cbdf4d0d49d2e661a
treeee74206ffe71d2ad493aceb6af73b121c8f24dc1
parent59bf467ccaff27ab2ffe7243b3a334675fea8ed9
crypto/ec/curve25519.c: remove redundant fe[51]_cswap.

3 least significant bits of the input scalar are explicitly cleared,
hence swap variable has fixed value [of zero] upon exit from the loop.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/5408)
crypto/ec/curve25519.c