InMemorySymmetricSecurityKey.DecryptKey(String, Byte[]) 方法

定義

解密指定的加密金鑰。

public:
 override cli::array <System::Byte> ^ DecryptKey(System::String ^ algorithm, cli::array <System::Byte> ^ keyData);
public override byte[] DecryptKey (string algorithm, byte[] keyData);
override this.DecryptKey : string * byte[] -> byte[]
Public Overrides Function DecryptKey (algorithm As String, keyData As Byte()) As Byte()

參數

algorithm
String

已用於加密金鑰的密碼編譯演算法。

keyData
Byte[]

包含加密金鑰的 Byte 陣列。

傳回

Byte[]

包含解密金鑰的 Byte 陣列。

例外狀況

不支援 algorithm。 支援的演算法為 TripleDesKeyWrapAes128KeyWrapAes192KeyWrapAes256KeyWrap

備註

使用 SecurityAlgorithms 類別的靜態欄位,即可指定演算法。

適用於