summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecT233Field.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-07-31 17:49:43 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-07-31 17:49:43 +0700
commit89cf67c959f4080d67746946101a2375e761e039 (patch)
tree3da37f1e722e867a5e27f87e04f8bb86b16ff2b4 /crypto/src/math/ec/custom/sec/SecT233Field.cs
parentAccept only properly-sized BigInteger (no auto-reduction) (diff)
downloadBouncyCastle.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.cs5
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);
         }
     }
 }