Fix negative short composition

This commit is contained in:
Jordi Baylina
2020-04-27 11:57:32 +02:00
parent 67ec7c5d5b
commit 99afb4312e

View File

@@ -504,7 +504,7 @@ class BuilderC {
function addShortMontgomeryNegative(a) { function addShortMontgomeryNegative(a) {
const b = a.minus(self.header.P); const b = self.F.neg(a);
return `${b.toString()}, 0x40000000, { ${getLongString(toMontgomery(a))} }`; return `${b.toString()}, 0x40000000, { ${getLongString(toMontgomery(a))} }`;
} }