Bugfix: Used wrong exponent
This commit is contained in:
1 parent
c67f058b1e
commit
8b607878f0
1 file changed
+1
-1
@@ -29,7 +29,7 @@ namespace Ed25519
|
|||||||
|
|
||||||
internal static BigInteger Inv(this BigInteger number)
|
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)
|
internal static BigInteger RecoverX(this BigInteger y)
|
||||||
|
|||||||
Reference in new issue
Block a user