Share via


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[]

已解密的列加密密钥。

适用于