Initialize the cipher.
if true the cipher is initialized for encryption, if false for decryption.
not used
See Implementation
Initialize the cipher.