Пример #1
0
        public override bool Equals(
            object obj)
        {
            Gost3410ValidationParameters other = obj as Gost3410ValidationParameters;

            return(other != null &&
                   other.c == this.c &&
                   other.x0 == this.x0 &&
                   other.cL == this.cL &&
                   other.x0L == this.x0L);
        }
Пример #2
0
        public Gost3410Parameters(
            BigInteger p,
            BigInteger q,
            BigInteger a,
            Gost3410ValidationParameters validation)
        {
            if (p == null)
            {
                throw new ArgumentNullException("p");
            }
            if (q == null)
            {
                throw new ArgumentNullException("q");
            }
            if (a == null)
            {
                throw new ArgumentNullException("a");
            }

            this.p          = p;
            this.q          = q;
            this.a          = a;
            this.validation = validation;
        }