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/SecT283Field.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/SecT283Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT283Field.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT283Field.cs b/crypto/src/math/ec/custom/sec/SecT283Field.cs index 22b7eaaab..64fbc966d 100644 --- a/crypto/src/math/ec/custom/sec/SecT283Field.cs +++ b/crypto/src/math/ec/custom/sec/SecT283Field.cs @@ -45,9 +45,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec public static ulong[] FromBigInteger(BigInteger x) { - ulong[] z = Nat320.FromBigInteger64(x); - Reduce37(z, 0); - return z; + return Nat.FromBigInteger64(283, x); } public static void Invert(ulong[] x, ulong[] z) |