SymmetricAlgorithm.CreateDecryptor 方法

定義

建立對稱解密子物件。

多載

CreateDecryptor()

使用目前的 Key 屬性和初始化向量 (IV),建立對稱解密子物件。

CreateDecryptor(Byte[], Byte[])

在衍生類別中覆寫時,使用指定的 Key 屬性和初始化向量 (IV) 建立對稱解密子物件。

CreateDecryptor()

來源:
SymmetricAlgorithm.cs
來源:
SymmetricAlgorithm.cs
來源:
SymmetricAlgorithm.cs

使用目前的 Key 屬性和初始化向量 (IV),建立對稱解密子物件。

public:
 virtual System::Security::Cryptography::ICryptoTransform ^ CreateDecryptor();
public virtual System.Security.Cryptography.ICryptoTransform CreateDecryptor ();
abstract member CreateDecryptor : unit -> System.Security.Cryptography.ICryptoTransform
override this.CreateDecryptor : unit -> System.Security.Cryptography.ICryptoTransform
Public Overridable Function CreateDecryptor () As ICryptoTransform

傳回

對稱解密子物件。

備註

這個方法會解密使用具有相同簽章的多 CreateEncryptor 載所建立的加密訊息。

另請參閱

適用於

CreateDecryptor(Byte[], Byte[])

來源:
SymmetricAlgorithm.cs
來源:
SymmetricAlgorithm.cs
來源:
SymmetricAlgorithm.cs

在衍生類別中覆寫時,使用指定的 Key 屬性和初始化向量 (IV) 建立對稱解密子物件。

public:
 abstract System::Security::Cryptography::ICryptoTransform ^ CreateDecryptor(cli::array <System::Byte> ^ rgbKey, cli::array <System::Byte> ^ rgbIV);
public abstract System.Security.Cryptography.ICryptoTransform CreateDecryptor (byte[] rgbKey, byte[]? rgbIV);
public abstract System.Security.Cryptography.ICryptoTransform CreateDecryptor (byte[] rgbKey, byte[] rgbIV);
abstract member CreateDecryptor : byte[] * byte[] -> System.Security.Cryptography.ICryptoTransform
Public MustOverride Function CreateDecryptor (rgbKey As Byte(), rgbIV As Byte()) As ICryptoTransform

參數

rgbKey
Byte[]

對稱演算法所用的祕密金鑰。

rgbIV
Byte[]

對稱演算法所用的初始化向量。

傳回

對稱解密子物件。

備註

這個方法會解密使用 CreateEncryptor 具有相同參數的多載所建立的加密訊息。

另請參閱

適用於