Click or drag to resize

KeyVaultCryptoProviderDecrypt Method

Decrypts data using a key stored in the IKeyProvider

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

Parameters

keyName  String
The unique identifier for the key
data  Byte
The ciphertext to decrypt
algorithm  EncryptionAlgorithm  (Optional)
The EncryptionAlgorithm to use

Return Value

TaskByte
The plaintext

Implements

ICryptoProviderDecrypt(String, Byte, EncryptionAlgorithm)
Remarks
The default encryption algorithm is RsaOaep256. For more information, see the Microsoft documentation
See Also