diff --git a/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c b/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c index 9a7f9825..c26ea731 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +++ b/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c @@ -226,7 +226,7 @@ fexpand(limb *output, const u8 *in) { output[1] = (U8TO64(in+6) >> 3) & 0x7ffffffffffff; output[2] = (U8TO64(in+12) >> 6) & 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