Share via


SqlColumnEncryptionCertificateStoreProvider.DecryptColumnEncryptionKey 方法

定义

对列加密密钥的指定加密值进行解密。 加密值应使用具有指定密钥路径的证书和指定的算法进行加密。 密钥路径的格式应为“Local Machine/My/<certificate_thumbprint>”或“Current User/My/<certificate_thumbprint>”。

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
已解密的列加密密钥。

适用于