Initialize the cipher and, possibly, the initialization vector (IV).
if true the cipher is initialized for encryption, if false for decryption.
See Implementation
Initialize the cipher and, possibly, the initialization vector (IV).