Share via


SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKey Method

Definition

This function uses the asymmetric key specified by the key path and encrypts CEK with RSA encryption algorithm.

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()

Parameters

masterKeyPath
String

Complete path of an asymmetric key in Azure Key Vault

encryptionAlgorithm
String

Asymmetric Key Encryption Algorithm

columnEncryptionKey
Byte[]

The plaintext column encryption key.

Returns

Byte[]

Encrypted column encryption key

Applies to