IStreamCipherInit Method

Initialise the cipher.

Definition

Namespace: Org.BouncyCastle.Crypto
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
void Init(
	bool forEncryption,
	ICipherParameters parameters
)

Parameters

forEncryption  Boolean
If true the cipher is initialised for encryption, if false for decryption.
parameters  ICipherParameters
The key and other data required by the cipher.

Exceptions

ArgumentException If the parameters argument is inappropriate.

See Also