Added the ability to specify an initialization vector to the cipher.