コード例 #1
0
ファイル: RSAPrivateKey.cs プロジェクト: will14smith/Crypto
        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;
 }