Exemple #1
0
        public override bool Equals(object o)
        {
            CheckApprovedOnlyModeStatus();

            if (this == o)
            {
                return(true);
            }
            if (!(o is AsymmetricRsaPrivateKey))
            {
                return(false);
            }

            AsymmetricRsaPrivateKey other = (AsymmetricRsaPrivateKey)o;

            return(Modulus.Equals(other.Modulus) &&
                   privateExponent.Equals(other.privateExponent) && PublicExponent.Equals(other.PublicExponent) &&
                   p.Equals(other.p) && q.Equals(other.q) &&
                   dp.Equals(other.dp) && dq.Equals(other.dq) && qInv.Equals(other.qInv));
        }