summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-26 23:20:26 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-26 23:20:26 +0700
commit42edb2de8521c23a5d3d80c0a97aea27d9a15483 (patch)
tree1a2e4ddba030967950f3bfaab736302402d79c6d /crypto/src/math/ec/custom/sec/SecP192K1Field.cs
parentAdd extra arg to AddWord() and add variant of Copy() (diff)
downloadBouncyCastle.NET-ed25519-42edb2de8521c23a5d3d80c0a97aea27d9a15483.tar.xz
Round out the Nat192 methods
Use Nat*.Copy methods in fields
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP192K1Field.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP192K1Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP192K1Field.cs b/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
index eef42eecc..9b24adecd 100644
--- a/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
+++ b/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
@@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
 
         public static void AddOne(uint[] x, uint[] z)
         {
-            Array.Copy(x, 0, z, 0, 6);
+            Nat192.Copy(x, z);
             uint c = Nat192.Inc(z, 0);
             if (c != 0 || (z[5] == P5 && Nat192.Gte(z, P)))
             {