Public bug reported:

Ubuntu 7.04 x86

Using mcrypt in ECB mode, and passing the IV size to the
mcrypt_generic_init function, the encryption process hangs
intermittently, sometimes for up to 10-12 seconds.

$td = mcrypt_module_open('tripledes, '', 'ecb', '') ;
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
$expected_key_size = mcrypt_enc_get_key_size($td);
$encString = substr(md5('enc_string'), 0, $expected_key_size);
mcrypt_generic_init($td, $encString, $iv);

It was noticed that IV is ignored in ECB, so $iv was set to a zero
integer and performance times returned to normal.

** Affects: php-mcrypt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
mcrypt hanging during encryption process 
https://bugs.launchpad.net/bugs/130181
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to