public override int GetHashCode()
 {
     return(_curve.GetHashCode()
            ^ _g.GetHashCode()
            ^ _n.GetHashCode()
            ^ _h.GetHashCode()
            ^ Arrays.GetHashCode(_seed));
 }
 public override int GetHashCode()
 {
     return(curve.GetHashCode()
            ^ g.GetHashCode()
            ^ n.GetHashCode()
            ^ h.GetHashCode()
            ^ Arrays.GetHashCode(seed));
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(_curve.GetHashCode()
            ^ _g.GetHashCode()
            ^ _n.GetHashCode()
            ^ _h.GetHashCode()
            ^ _seed.GetHashCodeExt());
 }
        public override int GetHashCode()
        {
            int hc = curve.GetHashCode();

            hc *= 37;
            hc ^= g.GetHashCode();
            hc *= 37;
            hc ^= n.GetHashCode();
            hc *= 37;
            hc ^= h.GetHashCode();
            return(hc);
        }
        public override int GetHashCode()
        {
            //return Arrays.GetHashCode(new object[]{ curve, g, n });
            int hc = 4;

            hc *= 257;
            hc ^= curve.GetHashCode();
            hc *= 257;
            hc ^= g.GetHashCode();
            hc *= 257;
            hc ^= n.GetHashCode();
            return(hc);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hc = g.GetHashCode() ^ h.GetHashCode() ^ n.GetHashCode() ^ curve.GetHashCode();

            if (seed != null)
            {
                // TODO Just use seed.GetHashCode()?
                for (int i = 0; i < seed.Length; i++)
                {
                    hc ^= ((int)seed[i]) << (i % 4);
                }
            }

            return(hc);
        }
 public override int GetHashCode()
 {
     return(q.GetHashCode() ^ base.GetHashCode());
 }
Beispiel #8
0
 public override int GetHashCode()
 {
     return(PublicKey.GetHashCode());
 }