SqlColumnEncryptionCngProvider.EncryptColumnEncryptionKey 方法

定义

使用密钥路径和指定算法指定的非对称密钥加密给定的纯文本列加密密钥。 密钥路径的格式为 [ProviderName]/KeyIdentifier,并且应该是存储在指定 CNG 密钥存储提供程序中的非对称密钥。 用于加密/解密 CEK 的有效算法为“RSA_OAEP”。

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

加密算法。

columnEncryptionKey
Byte[]

加密列加密密钥。

返回

Byte[]

加密列加密密钥。

适用于