You are here: Mcrypt problem on PHP 4.3.1 / FreeBSD 5.3 « PHP Programming Language « IT news, forums, messages
Mcrypt problem on PHP 4.3.1 / FreeBSD 5.3

Posted by sylvian stone on 11/16/87 11:29

Hi,

I'm getting some strange errors that I cannot pin down:

Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 7,
needed: 8 in......

This is strange because the data is encrypted, inserted into the
databse, then later retrieved and decrypted with the necessary hash and
ivector keys.

The data itself is decrypted OK. But the error comes up.

The error does not occur when I run the same code on another machine
running on Mac OS X.

Is this a known bug on this FreeBSD build ?

As this is for a production site, I'm just tempted to set the
error_reporting directive in php.ini to off, as this looks bad when the
error flashes up, but is actually not causing any errors.

I did change alter the initialisation function to:

@mcrypt_generic_init()

but it still displays the error regardless.

This may be a bit obscure, but has anybody else encountered a similar
problem ?

Thanks
SS.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация