示例#1
0
        public override int GetHashCode()
        {
            ECCurve curve = this.Curve;
            int     num   = (curve == null) ? 0 : (~curve.GetHashCode());

            if (!this.IsInfinity)
            {
                ECPoint eCPoint = this.Normalize();
                num ^= eCPoint.XCoord.GetHashCode() * 17;
                num ^= eCPoint.YCoord.GetHashCode() * 257;
            }
            return(num);
        }
示例#2
0
        public override int GetHashCode()
        {
            ECCurve curve = Curve;
            int     num   = (curve != null) ? (~curve.GetHashCode()) : 0;

            if (!IsInfinity)
            {
                ECPoint eCPoint = Normalize();
                num ^= eCPoint.XCoord.GetHashCode() * 17;
                num ^= eCPoint.YCoord.GetHashCode() * 257;
            }
            return(num);
        }
示例#3
0
        public override int GetHashCode()
        {
            ECCurve curve = this.Curve;
            int     num   = (curve != null) ? ~curve.GetHashCode() : 0;

            if (!this.IsInfinity)
            {
                ECPoint point = this.Normalize();
                num ^= point.XCoord.GetHashCode() * 0x11;
                num ^= point.YCoord.GetHashCode() * 0x101;
            }
            return(num);
        }