Share via


CreateDecryptor Method (CryptoKey, Byte[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overrides Function CreateDecryptor ( _
    key As CryptoKey, _
    iv As Byte() _
) As ICryptoTransform
public override ICryptoTransform CreateDecryptor(
    CryptoKey key,
    byte[] iv
)
public:
virtual ICryptoTransform^ CreateDecryptor(
    CryptoKey^ key, 
    array<unsigned char>^ iv
) override
abstract CreateDecryptor : 
        key:CryptoKey * 
        iv:byte[] -> ICryptoTransform 
override CreateDecryptor : 
        key:CryptoKey * 
        iv:byte[] -> ICryptoTransform 
public override function CreateDecryptor(
    key : CryptoKey, 
    iv : byte[]
) : ICryptoTransform

Parameters

  • iv
    Type: array<System. . :: . .Byte> [] () [] []
    The initialization vector to use for the symmetric algorithm.

Return Value

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

.NET Framework Security

See Also

Reference

AesCryptoServiceProvider Class

CreateDecryptor Overload

System.Security.Cryptography Namespace