ec/asm/x25519-x86_64.pl: fix base 2^64 add/sub and final reduction.
authorAndy Polyakov <appro@openssl.org>
Wed, 11 Jul 2018 20:08:02 +0000 (22:08 +0200)
committerAndy Polyakov <appro@openssl.org>
Sun, 15 Jul 2018 17:04:48 +0000 (19:04 +0200)
commit2de607d8c952fef0cadf158b0a020037837911ac
tree8d5d8ac634b20c5db208e7b0c108013f1dec989c
parent5d1c09de1f2736e1d4b1877206d08455ec75f558
ec/asm/x25519-x86_64.pl: fix base 2^64 add/sub and final reduction.

Base 2^64 addition/subtraction and final reduction failed to treat
partially reduced values correctly.

Thanks to Wycheproof Project for vectors and Paul Kehrer for report.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6699)
crypto/ec/asm/x25519-x86_64.pl