Initialise the cipher.
Namespace: Org.BouncyCastle.CryptoAssembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
void Init( bool forEncryption, ICipherParameters parameters ) |
Visual Basic |
---|
Sub Init ( _ forEncryption As Boolean, _ parameters As ICipherParameters _ ) |
Visual C++ |
---|
void Init( bool forEncryption, ICipherParameters^ parameters ) |
Parameters
- forEncryption
- Type: System..::..Boolean
If true the cipher is initialised for encryption, if false for decryption.
- parameters
- Type: Org.BouncyCastle.Crypto..::..ICipherParameters
The key and other data required by the cipher.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | If the parameters argument is inappropriate. |