Creates a symmetric
Rijndael encryptor object with the specified
Key and initialization vector (
IV).
Namespace: LLCryptoLib.Security.CryptographyAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public override ICryptoTransform CreateEncryptor(
byte[] rgbKey,
byte[] rgbIV
) |
Visual Basic |
---|
Public Overrides Function CreateEncryptor ( _
rgbKey As Byte(), _
rgbIV As Byte() _
) As ICryptoTransform |
Visual C++ |
---|
public:
virtual ICryptoTransform^ CreateEncryptor(
array<unsigned char>^ rgbKey,
array<unsigned char>^ rgbIV
) override |
Parameters
- rgbKey
- Type: array<System..::..Byte>[]()[][]
The secret key to be used for the symmetric algorithm.
- rgbIV
- Type: array<System..::..Byte>[]()[][]
The IV to be used for the symmetric algorithm.
Return Value
A symmetric Rijndael encryptor object.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ObjectDisposedException | The object has been disposed. |
System.Security.Cryptography..::..CryptographicException | An error occurs while creating the encryptor. |
See Also