summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP521R1Field.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-24 19:44:57 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-24 19:44:57 +0700
commit9beb3a6ea61b10349e348c1216f52b187d172d2c (patch)
tree2331137e3b37cd3f48f5ec3a3d6fe0fa20ab66cb /crypto/src/math/ec/custom/sec/SecP521R1Field.cs
parentTabs -> spaces (diff)
downloadBouncyCastle.NET-ed25519-9beb3a6ea61b10349e348c1216f52b187d172d2c.tar.xz
Refactoring in Nat* classes
Diffstat (limited to '')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP521R1Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP521R1Field.cs b/crypto/src/math/ec/custom/sec/SecP521R1Field.cs
index 38b177c0d..cfe3202cd 100644
--- a/crypto/src/math/ec/custom/sec/SecP521R1Field.cs
+++ b/crypto/src/math/ec/custom/sec/SecP521R1Field.cs
@@ -152,7 +152,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
             Nat512.Square(x, zz);
 
             uint x16 = x[16];
-            zz[32] = Nat.MulWordAdd(16, x16 << 1, x, zz, 16) + (x16 * x16);
+            zz[32] = Nat.MulWordAddTo(16, x16 << 1, x, 0, zz, 16) + (x16 * x16);
         }
     }
 }