PaddingModeNotSupported() приватный статический Метод

private static PaddingModeNotSupported ( ) : Exception
Результат Exception
 public override byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
 {
     if (hash == null)
     {
         throw new ArgumentNullException("hash");
     }
     if (string.IsNullOrEmpty(hashAlgorithm.Name))
     {
         throw RSA.HashAlgorithmNameNullOrEmpty();
     }
     if (padding == (RSASignaturePadding)null)
     {
         throw new ArgumentNullException("padding");
     }
     if (padding != RSASignaturePadding.Pkcs1)
     {
         throw RSACryptoServiceProvider.PaddingModeNotSupported();
     }
     return(this.SignHash(hash, RSACryptoServiceProvider.GetAlgorithmId(hashAlgorithm)));
 }
 public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     if (padding == (RSAEncryptionPadding)null)
     {
         throw new ArgumentNullException("padding");
     }
     if (padding == RSAEncryptionPadding.Pkcs1)
     {
         return(this.Decrypt(data, false));
     }
     if (padding == RSAEncryptionPadding.OaepSHA1)
     {
         return(this.Decrypt(data, true));
     }
     throw RSACryptoServiceProvider.PaddingModeNotSupported();
 }