summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs
index ba2897ae4..78886dd8c 100644
--- a/crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs
+++ b/crypto/src/math/ec/custom/sec/SecP192K1FieldElement.cs
@@ -182,7 +182,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
             uint[] t2 = x3;
             SecP192K1Field.Square(t1, t2);
 
-            return Arrays.AreEqual(x1, t2) ? new SecP192K1FieldElement(t1) : null;
+            return Nat192.Eq(x1, t2) ? new SecP192K1FieldElement(t1) : null;
         }
 
         public override bool Equals(object obj)
@@ -201,12 +201,12 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
                 return true;
             if (null == other)
                 return false;
-            return Arrays.AreEqual(x, other.x);
+            return Nat192.Eq(x, other.x);
         }
 
         public override int GetHashCode()
         {
-            return Q.GetHashCode() ^ Arrays.GetHashCode(x);
+            return Q.GetHashCode() ^ Arrays.GetHashCode(x, 0, 6);
         }
     }
 }