public static Boolean Test() { Boolean bRes = true; try { MySymmetricAlgorithm msa = new MySymmetricAlgorithm(); MyDESAlgorithm mda = new MyDESAlgorithm(); My3DESAlgorithm m3a = new My3DESAlgorithm(); MyRC2Algorithm mrca = new MyRC2Algorithm(); MyRijndaelAlgorithm mra = new MyRijndaelAlgorithm(); // to cover rc2.set_EffectiveKeySize (accessible only through inheritance) mrca.EffectiveKeySize = mrca.KeySize; Console.WriteLine("rc2.EffectiveKeySize = " + mrca.EffectiveKeySize); } catch(Exception e) { Console.WriteLine("Exception caught:\n" + e.ToString()); bRes = false; } return bRes; }
public static Boolean Test() { Boolean bRes = true; try { MySymmetricAlgorithm msa = new MySymmetricAlgorithm(); MyDESAlgorithm mda = new MyDESAlgorithm(); My3DESAlgorithm m3a = new My3DESAlgorithm(); MyRC2Algorithm mrca = new MyRC2Algorithm(); MyRijndaelAlgorithm mra = new MyRijndaelAlgorithm(); // to cover rc2.set_EffectiveKeySize (accessible only through inheritance) mrca.EffectiveKeySize = mrca.KeySize; Console.WriteLine("rc2.EffectiveKeySize = " + mrca.EffectiveKeySize); } catch (Exception e) { Console.WriteLine("Exception caught:\n" + e.ToString()); bRes = false; } return(bRes); }