Share via


SqlColumnEncryptionCspProvider.EncryptColumnEncryptionKey 方法

定義

使用由金鑰路徑和指定演算法所指定的非對稱金鑰,加密指定的純文字資料行加密金鑰。 此金鑰路徑的格式為 [產品名稱]/KeyIdentifier,而且應該是儲存在指定的 CSP 提供者中的非對稱金鑰。 用來加密/解密 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[]

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

適用於