System.Security.Cryptography.RijndaelManaged.CreateDecryptor Method

Creates a symmetric System.Security.Cryptography.Rijndael decryptor object with the specified SymmetricAlgorithm.Key and initialization vector (SymmetricAlgorithm.IV).

Syntax

public override ICryptoTransform CreateDecryptor (byte[] rgbKey, byte[] rgbIV)

Parameters

rgbKey
The secret key to be used for the symmetric algorithm. The key size must be 128, 192, or 256 bits.
rgbIV
The IV to be used for the symmetric algorithm.

Returns

A symmetric System.Security.Cryptography.Rijndael decryptor object.

Remarks

This method decrypts an encrypted message created using the RijndaelManaged.CreateEncryptor(Byte[], Byte[]) overload with the same signature.

The rgbkey size must be 128, 192, or 256 bits.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0