The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
RSACryptoServiceProvider::Decrypt Method (array<Byte>^, RSAEncryptionPadding^)
Decrypts data that was previously encrypted with the RSA algorithm by using the specified padding.
Assembly: mscorlib (in mscorlib.dll)
public: virtual array<unsigned char>^ Decrypt( array<unsigned char>^ data, RSAEncryptionPadding^ padding ) override
Parameters
- data
-
Type:
array<System::Byte>^
The data to decrypt.
- padding
-
Type:
System.Security.Cryptography::RSAEncryptionPadding^
The padding.
| Exception | Condition |
|---|---|
| ArgumentNullException | data is null. -or- padding is null. |
| CryptographicException | The padding mode is not supported. |
padding must be either RSAEncryptionPadding::Pkcs1 or RSAEncryptionPadding::OaepSHA1.
.NET Framework
Available since 4.6
Available since 4.6
Show: