Example #1
0
 // Constructor.
 public TripleDESCryptoServiceProvider()
     : base()
 {
     if (!CryptoMethods.AlgorithmSupported(CryptoMethods.TripleDES))
     {
         throw new CryptographicException
                   (_("Crypto_NoProvider"), "TripleDES");
     }
 }
Example #2
0
 // Constructor.
 public RijndaelManaged()
     : base()
 {
     if (!CryptoMethods.AlgorithmSupported(CryptoMethods.Rijndael))
     {
         throw new CryptographicException
                   (_("Crypto_NoProvider"), "Rijndael");
     }
 }
Example #3
0
 // Constructor.
 public RC2CryptoServiceProvider()
     : base()
 {
     if (!CryptoMethods.AlgorithmSupported(CryptoMethods.RC2))
     {
         throw new CryptographicException
                   (_("Crypto_NoProvider"), "RC2");
     }
 }