ID:               47654
 Updated by:       j...@php.net
 Reported By:      saurabh0 at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         mcrypt related
 Operating System: *
 PHP Version:      5.2.9
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------

[2009-03-13 21:28:28] saurabh0 at gmail dot com

Description:
------------
In ECB mode iv is ignored so there should not be any warning when
passing and empty iv string. This was also reported earlier in bugs
#43143 and #46010 which were supposedly fixed.




Reproduce code:
---------------
$td = mcrypt_module_open('tripledes', '', 'ecb', '');
mcrypt_generic_init($td, 'mysecretkey', '');

Expected result:
----------------
No warning. In fact a 'Notice' when a non-empty iv is given in ECB mode
mentioning that it will be ignored would be better.

Actual result:
--------------
Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size
incorrect; supplied length: 0, needed: 8


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47654&edit=1

Reply via email to