예제 #1
0
 // Set the hash algorithm.
 public override void SetHashAlgorithm(string strName)
 {
     if (strName == null)
     {
         throw new ArgumentNullException("strName");
     }
     if (!CryptoConfig.IsAlgorithm(strName, typeof(SHA1)))
     {
         throw new CryptographicException
                   (_("Crypto_DSANeedsSHA1"));
     }
 }