コード例 #1
0
 public void Init(
     KeyGenerationParameters parameters)
 {
     if (parameters is RsaKeyGenerationParameters)
     {
         this.param = (RsaKeyGenerationParameters)parameters;
     }
     else
     {
         this.param = new RsaKeyGenerationParameters(
             DefaultPublicExponent, parameters.Random, parameters.Strength, DefaultTests);
     }
 }
コード例 #2
0
        public override bool Equals(
            object obj)
        {
            RsaKeyGenerationParameters other = obj as RsaKeyGenerationParameters;

            if (other == null)
            {
                return(false);
            }

            return(certainty == other.certainty &&
                   publicExponent.Equals(other.publicExponent));
        }