|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-16 02:44 UTC] iliaa@php.net
[2002-12-16 02:45 UTC] derick@php.net
[2002-12-16 03:09 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
I'm running FreeBSD 4.7 with libmcrypt 2.5.3. There seems to be a bug in libmcrypt, the crash occurs if you call mcrypt_generic(), but without valid IV. Here's a short script: $td = mcrypt_module_open ('des', '', 'cbc', ''); $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init ($td, substr($nthash, 0, 7)); $res = mcrypt_generic ($td, $challenge); changing: mcrypt_generic_init ($td, substr($nthash, 0, 7)); to: mcrypt_generic_init ($td, substr($nthash, 0, 7), $iv); solves the problem :-)