public bool Equals(EccPoint b) { // Both points are infinity if (this.Infinity && b.Infinity) { return(true); } // One point is infinity and the other is not if (this.Infinity || b.Infinity) { return(false); } // Compare (x,y) values if (this.X == b.X && this.Y == b.Y) { return(true); } return(false); }
public EccKeyPair(EccPoint q) { PublicQ = q; }
public EccKeyPair(EccPoint q, BigInteger d) { PublicQ = q; PrivateD = d; }