-api-id | -api-type |
---|---|
M:Windows.Security.Cryptography.Core.CryptographicEngine.DecryptAsync(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer) |
winrt method |
Decrypts the encrypted input data using the supplied key.
The key to use to decrypt the encrypted input data.
The encrypted data to decrypt.
The initial vector for a symmetric key. For an asymmetric key, set this value to null.
The decrypted data.
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.