diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-07-31 17:49:43 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-07-31 17:49:43 +0700 |
commit | 89cf67c959f4080d67746946101a2375e761e039 (patch) | |
tree | 3da37f1e722e867a5e27f87e04f8bb86b16ff2b4 /crypto/src/math/ec/custom/sec/SecT233Field.cs | |
parent | Accept only properly-sized BigInteger (no auto-reduction) (diff) | |
download | BouncyCastle.NET-ed25519-89cf67c959f4080d67746946101a2375e761e039.tar.xz |
Rework some of the ImplSquare methods in custom binary curves
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT233Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT233Field.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT233Field.cs b/crypto/src/math/ec/custom/sec/SecT233Field.cs index bd493c586..013e6b8f9 100644 --- a/crypto/src/math/ec/custom/sec/SecT233Field.cs +++ b/crypto/src/math/ec/custom/sec/SecT233Field.cs @@ -306,10 +306,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec Interleave.Expand64To128(x[0], zz, 0); Interleave.Expand64To128(x[1], zz, 2); Interleave.Expand64To128(x[2], zz, 4); - - ulong x3 = x[3]; - zz[6] = Interleave.Expand32to64((uint)x3); - zz[7] = Interleave.Expand16to32((uint)(x3 >> 32)); + Interleave.Expand64To128(x[3], zz, 6); } } } |