codeigniter mcrypt and don't create_iv
<p>I am using codeigniter 2x, and I need to decode string I have been given, and that string containes array. For that I got a key, iv, cipher and mode. </p>

<p>I figure out how to set key, cipher and mode:</p>

<pre><code>$this-&gt;load-&gt;library('encrypt');
$this-&gt;encrypt-&gt;set_cipher(MCRYPT_RIJNDAEL_128);
$this-&gt;encrypt-&gt;set_mode(MCRYPT_MODE_CBC);
$key = 'mysomekey';
</code></pre>

<p>But I can't figure out how to use iv I have been give, and decode that string.</p>

<p>On net I did found only this:</p>

<pre><code>$o = $this-&gt;encrypt-&gt;decode($o,$key);
</code></pre>

<p>Can anyone helps me?</p>