Click or drag to resize

RijndaelManagedCreateEncryptor(Byte, Byte) Method

Creates a symmetric Crestron.SimplSharp.Cryptography.Rijndael encryptor object with the specified Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public override ICryptoTransform CreateEncryptor(
	byte[] rgbKey,
	byte[] rgbIV
)

Parameters

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

Return Value

ICryptoTransform
A symmetric Crestron.SimplSharp.Cryptography.Rijndael encryptor object.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe rgbKey parameter is null. -or- The rgbIV parameter is null.
CryptographicException The value of the Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Mode parameter is not Crestron.SimplSharp.Cryptography.CipherMode.ECB, Crestron.SimplSharp.Cryptography.CipherMode.CBC, or Crestron.SimplSharp.Cryptography.CipherMode.CFB.

Version Information

.NET Compact Framework

Supported in: 3.5
See Also