CryptographicEngine.DecryptAsync(CryptographicKey, IBuffer, IBuffer) 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 encrypted input data using the supplied key.
public:
static IAsyncOperation<IBuffer ^> ^ DecryptAsync(CryptographicKey ^ key, IBuffer ^ data, IBuffer ^ iv);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IBuffer> DecryptAsync(CryptographicKey const& key, IBuffer const& data, IBuffer const& iv);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IBuffer> DecryptAsync(CryptographicKey key, IBuffer data, IBuffer iv);
function decryptAsync(key, data, iv)
Public Shared Function DecryptAsync (key As CryptographicKey, data As IBuffer, iv As IBuffer) As IAsyncOperation(Of IBuffer)
Parameters
- key
- CryptographicKey
The key to use to decrypt the encrypted input data.
- data
- IBuffer
The encrypted data to decrypt.
- iv
- IBuffer
The initial vector for a symmetric key. For an asymmetric key, set this value to null.
Returns
The decrypted data.
- Attributes
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.