コード例 #1
0
 public override int GetHashCode()
 {
     return(_curve.GetHashCode()
            ^ _g.GetHashCode()
            ^ _n.GetHashCode()
            ^ _h.GetHashCode()
            ^ Arrays.GetHashCode(_seed));
 }
コード例 #2
0
 public override int GetHashCode()
 {
     return(curve.GetHashCode()
            ^ g.GetHashCode()
            ^ n.GetHashCode()
            ^ h.GetHashCode()
            ^ Arrays.GetHashCode(seed));
 }
コード例 #3
0
 public override int GetHashCode()
 {
     return(_curve.GetHashCode()
            ^ _g.GetHashCode()
            ^ _n.GetHashCode()
            ^ _h.GetHashCode()
            ^ _seed.GetHashCodeExt());
 }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #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);
        }
コード例 #7
0
 public override int GetHashCode()
 {
     return(q.GetHashCode() ^ base.GetHashCode());
 }
コード例 #8
0
 public override int GetHashCode()
 {
     return(PublicKey.GetHashCode());
 }