RSACng.Decrypt(Byte[], RSAEncryptionPadding) RSACng.Decrypt(Byte[], RSAEncryptionPadding) RSACng.Decrypt(Byte[], RSAEncryptionPadding) RSACng.Decrypt(Byte[], RSAEncryptionPadding) Method

Definition

Decrypts input data using the specified padding mode.

public:
 override cli::array <System::Byte> ^ Decrypt(cli::array <System::Byte> ^ data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);
public override byte[] Decrypt (byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);
override this.Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
Public Overrides Function Decrypt (data As Byte(), padding As RSAEncryptionPadding) As Byte()

Parameters

data
Byte[]

The data to decrypt.

Returns

Byte[]

The decrypted data.

Exceptions

padding does not equal Pkcs1, or else the Mode of padding does not equal Oaep.

Applies to