private bool PointsAreEqual(Org.BouncyCastle.Math.EC.ECPoint bcp, OpenECC.Point oeccp) { return bcp.X.ToBigInteger().ToString().Equals(oeccp.X.Value.ToString()) && bcp.Y.ToBigInteger().ToString().Equals(oeccp.Y.Value.ToString()); }
private void AssertPointsAreEqual(Org.BouncyCastle.Math.EC.ECPoint bcp, OpenECC.Point oeccp) { Assert.IsNotNull(bcp); Assert.IsNotNull(oeccp); Assert.AreEqual(bcp.X.ToBigInteger().ToString(), oeccp.X.Value.ToString()); Assert.AreEqual(bcp.Y.ToBigInteger().ToString(), oeccp.Y.Value.ToString()); }