RSACng.Decrypt(Byte[], RSAEncryptionPadding) 方法

定義

使用指定填補模式來加密輸入資料。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()

參數

data
Byte[]

要解密的資料。The data to decrypt.

padding
RSAEncryptionPadding

填補模式。The padding mode.

傳回

Byte[]

已解密的資料。The decrypted data.

例外狀況

datanulldata is null.

-或--or- paddingnullpadding is null.

padding.Modepadding.Mode 不等於 Pkcs1Oaepisn't equal to Pkcs1 or Oaep.

適用於