Språk

SqlColumnEncryptionAzureKeyVaultProvider.DecryptColumnEncryptionKeyAsync Method

Definition

Asynchronously uses the asymmetric key specified by the key path and decrypts an encrypted CEK with the RSA encryption algorithm.

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

encryptedColumnEncryptionKey
Byte[]

Encrypted Column Encryption Key

cancellationToken
CancellationToken

Token used to request cancellation of the operation

Returns

Task<Byte[]>

Plain text column encryption key

Remarks

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

Applies to