CreateDecryptor Method (Byte[], Byte[])
Collapse the table of content
Expand the table of content

AesManaged.CreateDecryptor Method (Byte(), Byte())

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a symmetric decryptor object using the specified key and initialization vector (IV).

Namespace:  System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Overrides Function CreateDecryptor ( _
	key As Byte(), _
	iv As Byte() _
) As ICryptoTransform

Parameters

key
Type: System.Byte ()
The secret key to use for the symmetric algorithm.
iv
Type: System.Byte ()
The initialization vector to use for the symmetric algorithm.

Return Value

Type: System.Security.Cryptography.ICryptoTransform
A symmetric decryptor object.

ExceptionCondition
ArgumentNullException

key is Nothing.

ArgumentException

The initialization vector iv is an invalid size.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft