Re[2]: mcrypt_generic_init(): Iv size incorrect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Wednesday, April 13, 2005, 6:04:05 AM, you wrote:
MH> I get the following error when I try your suggestion:

MH> Unknown error type: [8] Undefined variable:  iv

MH> Code:

$key = md5($this->>_cypherkey);
MH> $key = substr($key, 0, mcrypt_enc_get_key_size($this->td));
MH> $iv_size = mcrypt_enc_get_iv_size($this->td);
MH> #$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
MH> $iv = pack("a".$iv_size,$iv);

Yes I forgot to put $iv = 0; before that line.
-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux