SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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