Initialize the cipher.
if true the cipher is initialised for encryption, if false for decryption.
IllegalArgumentException if the params argument is inappropriate.
See Implementation
Initialize the cipher.