Language

SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKeyAsync Method

Definition

Asynchronously uses the asymmetric key specified by the key path and encrypts a CEK with the RSA encryption algorithm.

public override System.Threading.Tasks.Task<byte[]> EncryptColumnEncryptionKeyAsync(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey, System.Threading.CancellationToken cancellationToken = default);
override this.EncryptColumnEncryptionKeyAsync : string * string * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Overrides Function EncryptColumnEncryptionKeyAsync (masterKeyPath As String, encryptionAlgorithm As String, columnEncryptionKey As Byte(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.

cancellationToken
CancellationToken

Token used to request cancellation of the operation

Returns

Task<Byte[]>

Encrypted column encryption key

Remarks

Argument validation failures are reported through the returned task rather than thrown synchronously.

Applies to