Пример #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
        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;
        }
Пример #4
0
 protected bool Equals(
     DsaValidationParameters other)
 {
     return(counter == other.counter &&
            Arrays.AreEqual(seed, other.seed));
 }
		protected bool Equals(
			DsaValidationParameters other)
		{
			return counter == other.counter
				&& Arrays.AreEqual(seed, other.seed);
		}