IKey.DecryptAsync(Byte[], Byte[], Byte[], Byte[], String, CancellationToken) 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.
Decrypts the specified cipher text.
public System.Threading.Tasks.Task<byte[]> DecryptAsync (byte[] ciphertext, byte[] iv, byte[] authenticationData, byte[] authenticationTag, string algorithm, System.Threading.CancellationToken token);
abstract member DecryptAsync : byte[] * byte[] * byte[] * byte[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Function DecryptAsync (ciphertext As Byte(), iv As Byte(), authenticationData As Byte(), authenticationTag As Byte(), algorithm As String, token As CancellationToken) As Task(Of Byte())
Parameters
- ciphertext
- System.Byte[]
The cipher text to decrypt
- iv
- System.Byte[]
The initialization vector
- authenticationData
- System.Byte[]
The authentication data
- authenticationTag
- System.Byte[]
- algorithm
- System.String
The algorithm to use
- token
- System.Threading.CancellationToken
Cancellation token
Returns
- System.Threading.Tasks.Task<System.Byte[]>
The plain text
Remarks
If algorithm is not specified, an implementation should use its default algorithm. Not all algorithms require, or support, all parameters.