Creates a symmetric decryptor object with the specified Key.
Namespace: LLCryptoLib.Security.CryptographyAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
| C# |
|---|
public override ICryptoTransform CreateDecryptor(
byte[] rgbKey,
byte[] rgbIV
) |
| Visual Basic |
|---|
Public Overrides Function CreateDecryptor ( _
rgbKey As Byte(), _
rgbIV As Byte() _
) As ICryptoTransform |
| Visual C++ |
|---|
public:
virtual ICryptoTransform^ CreateDecryptor(
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>[]()[][]
Not used in RC4. It can be a null reference or a byte array with a length less than 2.
Return Value
A symmetric decryptor object.
Remarks
Exceptions
| Exception | Condition |
|---|
| System..::..ObjectDisposedException | The object is disposed. |
| System..::..ArgumentNullException | rgbKey is a null reference (Nothing in Visual Basic). |
| System.Security.Cryptography..::..CryptographicException | |
See Also