Share via


SqlColumnEncryptionCertificateStoreProvider.EncryptColumnEncryptionKey 方法

定义

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

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

参数

masterKeyPath
String

主密钥路径。

encryptionAlgorithm
String

加密算法。 目前,唯一有效的值为: RSA_OAEP

columnEncryptionKey
Byte[]

加密的列加密密钥。

返回

Byte[]

返回 Byte
加密的列加密密钥。

适用于