public override int GetHashCode() { return curve.GetHashCode() ^ g.GetHashCode() ^ n.GetHashCode() ^ h.GetHashCode() //TODO: FIXME ^ Arrays.GetHashCode(seed) ; }
public override int GetHashCode() { ECCurve c = this.Curve; int hc = (null == c) ? 0 : ~c.GetHashCode(); if (!this.IsInfinity) { // TODO Consider just requiring already normalized, to avoid silent performance degradation ECPoint p = Normalize(); hc ^= p.XCoord.GetHashCode() * 17; hc ^= p.YCoord.GetHashCode() * 257; } return(hc); }