Bugfix: Used wrong exponent

This commit is contained in:
Thorsten Sommer committed 2020-01-03 21:03:39 +01:00
1 parent c67f058b1e
commit 8b607878f0
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ namespace Ed25519
internal static BigInteger Inv(this BigInteger number)
{
return number.ExpMod(2, Constants.Q);
return number.ExpMod(Constants.QM2, Constants.Q);
}
internal static BigInteger RecoverX(this BigInteger y)