public override bool Equals(
            object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DsaValidationParameters other = obj as DsaValidationParameters;

            if (other == null)
            {
                return(false);
            }

            return(Equals(other));
        }
Exemplo n.º 2
0
        public DsaParameters(
            BigInteger p,
            BigInteger q,
            BigInteger g,
            DsaValidationParameters parameters)
        {
            if (p == null)
            {
                throw new ArgumentNullException("p");
            }
            if (q == null)
            {
                throw new ArgumentNullException("q");
            }
            if (g == null)
            {
                throw new ArgumentNullException("g");
            }

            this.p          = p;
            this.q          = q;
            this.g          = g;
            this.validation = parameters;
        }
 protected virtual bool Equals(
     DsaValidationParameters other)
 {
     return(counter == other.counter &&
            Arrays.AreEqual(seed, other.seed));
 }