예제 #1
0
        public override bool Equals(
            object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DsaValidationParameters other = obj as DsaValidationParameters;

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

            return(Equals(other));
        }
예제 #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;
        }
예제 #3
0
 protected virtual bool Equals(
     DsaValidationParameters other)
 {
     return(counter == other.counter &&
            Arrays.AreEqual(seed, other.seed));
 }