SqlColumnEncryptionCngProvider.DecryptColumnEncryptionKey 方法

定義

利用由金鑰路徑指定的非對稱金鑰及指定演算法解密給定的加密值。 金鑰路徑格式為 [ProviderName]/KeyIdentifier,並應為儲存在指定 CNG 金鑰儲存提供者中的非對稱金鑰。 用於加密/解密 CEK 的有效演算法是「RSA_OAEP」。

public:
 override cli::array <System::Byte> ^ DecryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ encryptedColumnEncryptionKey);
public override byte[] DecryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] encryptedColumnEncryptionKey);
override this.DecryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public Overrides Function DecryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, encryptedColumnEncryptionKey As Byte()) As Byte()

參數

masterKeyPath
String

主鑰匙路徑。

encryptionAlgorithm
String

加密演算法。

encryptedColumnEncryptionKey
Byte[]

加密欄位加密金鑰。

傳回

Byte[]

解密後的欄位加密金鑰。

適用於