From 408f10c7d0a6b906891cee6614e8b63ef2a1cf0f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 21 Jan 2014 15:38:03 +0700 Subject: Make typed Equals methods public (and virtual) --- crypto/src/math/ec/ECFieldElement.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/src/math') diff --git a/crypto/src/math/ec/ECFieldElement.cs b/crypto/src/math/ec/ECFieldElement.cs index 180f97fd5..cc5050002 100644 --- a/crypto/src/math/ec/ECFieldElement.cs +++ b/crypto/src/math/ec/ECFieldElement.cs @@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Math.EC return Equals(other); } - protected virtual bool Equals( + public virtual bool Equals( ECFieldElement other) { return ToBigInteger().Equals(other.ToBigInteger()); @@ -379,7 +379,7 @@ namespace Org.BouncyCastle.Math.EC return Equals(other); } - protected bool Equals( + public virtual bool Equals( FpFieldElement other) { return q.Equals(other.q) && base.Equals(other); @@ -1255,7 +1255,7 @@ namespace Org.BouncyCastle.Math.EC return Equals(other); } - protected bool Equals( + public virtual bool Equals( F2mFieldElement other) { return m == other.m -- cgit 1.4.1