Added initialization vector parameter.