KeyVaultCryptoProviderDecryptAsync Method

Decrypts data using a key stored in the IKeyProvider

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.2.9417.0
C#
public Task<byte[]> DecryptAsync(
	string keyName,
	byte[] data,
	EncryptionAlgorithm algorithm = default,
	CancellationToken cancellationToken = default
)

Parameters

keyName  String
The unique identifier for the key
data  Byte
The ciphertext to decrypt
algorithm  EncryptionAlgorithm  (Optional)
The EncryptionAlgorithm to use
cancellationToken  CancellationToken  (Optional)
A cancellation token

Return Value

TaskByte
The plaintext

Implements

ICryptoProviderDecryptAsync(String, Byte, EncryptionAlgorithm, CancellationToken)

Remarks

The default encryption algorithm is RsaOaep256. For more information, see the Microsoft documentation

See Also