diff options
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs index 5bcff10d2..020c5cdbb 100644 --- a/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs +++ b/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs @@ -157,7 +157,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec SecP192R1Field.SquareN(t1, 62, t1); SecP192R1Field.Square(t1, t2); - return Arrays.AreEqual(x1, t2) ? new SecP192R1FieldElement(t1) : null; + return Nat192.Eq(x1, t2) ? new SecP192R1FieldElement(t1) : null; } public override bool Equals(object obj) @@ -176,12 +176,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); } } } |