diff options
Diffstat (limited to 'crypto/src/math/ec/custom/djb/Curve25519Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/djb/Curve25519Field.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/djb/Curve25519Field.cs b/crypto/src/math/ec/custom/djb/Curve25519Field.cs index 0006acd94..31416249d 100644 --- a/crypto/src/math/ec/custom/djb/Curve25519Field.cs +++ b/crypto/src/math/ec/custom/djb/Curve25519Field.cs @@ -47,7 +47,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Djb public static uint[] FromBigInteger(BigInteger x) { - uint[] z = Nat256.FromBigInteger(x); + uint[] z = Nat.FromBigInteger(256, x); while (Nat256.Gte(z, P)) { Nat256.SubFrom(P, z); |