diff options
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT571Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT571Field.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT571Field.cs b/crypto/src/math/ec/custom/sec/SecT571Field.cs index 9596aa5af..5a91985bc 100644 --- a/crypto/src/math/ec/custom/sec/SecT571Field.cs +++ b/crypto/src/math/ec/custom/sec/SecT571Field.cs @@ -322,10 +322,15 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec protected static void ImplSquare(ulong[] x, ulong[] zz) { - for (int i = 0; i < 9; ++i) - { - Interleave.Expand64To128(x[i], zz, i << 1); - } + Interleave.Expand64To128(x[0], zz, 0); + Interleave.Expand64To128(x[1], zz, 2); + Interleave.Expand64To128(x[2], zz, 4); + Interleave.Expand64To128(x[3], zz, 6); + Interleave.Expand64To128(x[4], zz, 8); + Interleave.Expand64To128(x[5], zz, 10); + Interleave.Expand64To128(x[6], zz, 12); + Interleave.Expand64To128(x[7], zz, 14); + Interleave.Expand64To128(x[8], zz, 16); } } } |