InMemorySymmetricSecurityKey.DecryptKey(String, Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
解密指定的加密金鑰。
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
已用於加密金鑰的密碼編譯演算法。
傳回
Byte[]
包含解密金鑰的 Byte 陣列。
例外狀況
不支援 algorithm
。 支援的演算法為 TripleDesKeyWrap、Aes128KeyWrap、Aes192KeyWrap 和 Aes256KeyWrap。
備註
使用 SecurityAlgorithms 類別的靜態欄位,即可指定演算法。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應