diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-07-31 17:42:12 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-07-31 17:42:12 +0700 |
commit | e7e89cce762e32917c1eef745b05da636ed03bbb (patch) | |
tree | 063c1ad6b42b21b0c10afc8ed173a4675f286e13 /crypto/src/math/ec/custom/sec/SecT113Field.cs | |
parent | Fix CMP tests failing to set body (diff) | |
download | BouncyCastle.NET-ed25519-e7e89cce762e32917c1eef745b05da636ed03bbb.tar.xz |
Accept only properly-sized BigInteger (no auto-reduction)
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT113Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT113Field.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT113Field.cs b/crypto/src/math/ec/custom/sec/SecT113Field.cs index 49773b66d..1c4576062 100644 --- a/crypto/src/math/ec/custom/sec/SecT113Field.cs +++ b/crypto/src/math/ec/custom/sec/SecT113Field.cs @@ -32,9 +32,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec public static ulong[] FromBigInteger(BigInteger x) { - ulong[] z = Nat128.FromBigInteger64(x); - Reduce15(z, 0); - return z; + return Nat.FromBigInteger64(113, x); } public static void Invert(ulong[] x, ulong[] z) |