示例#1
0
        protected override bool Equal(PrivateKey key)
        {
            var other = key as RSAPrivateKey;
            if (other == null) return false;

            return Modulus == other.Modulus
                   && PublicExponent == other.PublicExponent
                   && PrivateExponent == other.PrivateExponent
                   && Prime1 == other.Prime1
                   && Prime2 == other.Prime2
                   && Exponent1 == other.Exponent1
                   && Exponent2 == other.Exponent2
                   && Coefficent == other.Coefficent;
        }
示例#2
0
 public PrivateKeyParameter(PrivateKey key)
 {
     Key = key;
 }