コード例 #1
0
 public DsaDomainParameters(
     BigInteger p,
     BigInteger q,
     BigInteger g,
     DsaValidationParameters validationParameters)
 {
     this.g          = g;
     this.p          = p;
     this.q          = q;
     this.validation = validationParameters;
 }
コード例 #2
0
        public override bool Equals(
            Object o)
        {
            if (!(o is DsaValidationParameters))
            {
                return(false);
            }

            DsaValidationParameters other = (DsaValidationParameters)o;

            if (other.counter != this.counter)
            {
                return(false);
            }

            if (other.usageIndex != this.usageIndex)
            {
                return(false);
            }

            return(Arrays.AreEqual(this.seed, other.seed));
        }