CryptographicEngine.DecryptAsync(CryptographicKey, IBuffer, IBuffer) CryptographicEngine.DecryptAsync(CryptographicKey, IBuffer, IBuffer) CryptographicEngine.DecryptAsync(CryptographicKey, IBuffer, IBuffer) CryptographicEngine.DecryptAsync(CryptographicKey, IBuffer, IBuffer) CryptographicEngine.DecryptAsync(CryptographicKey, IBuffer, IBuffer) Method

Definition

Decrypts the encrypted input data using the supplied key.

public : static IAsyncOperation<IBuffer> DecryptAsync(CryptographicKey key, IBuffer data, IBuffer iv)
static IAsyncOperation<IBuffer> DecryptAsync(CryptographicKey key, IBuffer data, IBuffer iv) const;
public static IAsyncOperation<IBuffer> DecryptAsync(CryptographicKey key, IBuffer data, IBuffer iv)
Public Shared Function DecryptAsync(key As CryptographicKey, data As IBuffer, iv As IBuffer) As IAsyncOperation(Of IBuffer)
Windows.Security.Cryptography.Core.CryptographicEngine.decryptAsync(key, data, iv).done( /* Your success and error handlers */ );

Parameters

key
CryptographicKey CryptographicKey CryptographicKey

The key to use to decrypt the encrypted input data.

data
IBuffer IBuffer IBuffer

The encrypted data to decrypt.

iv
IBuffer IBuffer IBuffer

The initial vector for a symmetric key. For an asymmetric key, set this value to null.

Returns

Remarks

If the key is a persisted key and the decrypt operation requires UI or takes a long time, use the DecryptAsync method instead of the Decrypt method. For example, UI is required when decrypting using a key that is strongly protected.