Initialise the cipher.

Namespace: Org.BouncyCastle.Crypto
Assembly: 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.

See Also