Revert "Make curve25519-donna-c64 handle non-canonical points like the ref implementation."

This reverts commit bd8cbd3175.

Conflicts:
	src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c
	test/default/scalarmult7.c
	test/default/scalarmult8.c
This commit is contained in:
Frank Denis 2014-06-06 08:19:49 -07:00
parent c2290bbfaf
commit 6145edc563

View File

@ -226,7 +226,7 @@ fexpand(limb *output, const u8 *in) {
output[1] = (U8TO64(in+6) >> 3) & 0x7ffffffffffff; output[1] = (U8TO64(in+6) >> 3) & 0x7ffffffffffff;
output[2] = (U8TO64(in+12) >> 6) & 0x7ffffffffffff; output[2] = (U8TO64(in+12) >> 6) & 0x7ffffffffffff;
output[3] = (U8TO64(in+19) >> 1) & 0x7ffffffffffff; output[3] = (U8TO64(in+19) >> 1) & 0x7ffffffffffff;
output[4] = (U8TO64(in+25) >> 4) & 0xfffffffffffff; output[4] = (U8TO64(in+25) >> 4) & 0x7ffffffffffff;
} }
/* Take a fully reduced polynomial form number and contract it into a /* Take a fully reduced polynomial form number and contract it into a