Share via


SqlColumnEncryptionCertificateStoreProvider.DecryptColumnEncryptionKey 方法

定義

解密資料行加密金鑰指定的加密值。 加密值應該使用憑證和指定的機碼路徑並使用指定的演算法加密。 機碼路徑的格式應該是 "Local Machine/My/<憑證指紋>" 或 "Current User/My/<憑證指紋>"。

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

加密演算法。 目前唯一有效的值為: RSA_OAEP

encryptedColumnEncryptionKey
Byte[]

已加密的資料行加密金鑰。

傳回

Byte[]

傳回 Byte
已解密的資料行加密金鑰。

適用於