init abstract method

void init(
  1. bool forEncryption,
  2. CipherParameters params
)

Init the cipher with its initialization params. The type of CipherParameters depends on the algorithm being used (see the documentation of each implementation to find out more).

Use the argument forEncryption to tell the cipher if you want to encrypt or decrypt data.

Implementation

void init(bool forEncryption, CipherParameters params);