Date: 12/15/00
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8269 Updated: Compile cant find Sybtcl .... Help!"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8265 Updated: Compile fails for oci8 with Oracle 8.0.4 - missing libs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 8040
Updated by: derick
Reported By: barton <email protected>
Old-Status: Assigned
Status: Closed
Bug Type: mcrypt related
Assigned To: derick
Comments:
The following code snippet:
<?php
echo MCRYPT_TWOFISH."<BR>\n";
echo MCRYPT_MODE_CBC."<BR>\n";
?>
<?php
define ("MODE1", MCRYPT_MODE_CBC);
echo MODE1."<BR>\n";
?>
<?php
define ("CIPHER", MCRYPT_TWOFISH);
define ("MODE1", MCRYPT_MODE_CBC);
define ("MODE2", MCRYPT_CBC);
printf ("cipher=".CIPHER. " mode1=".MODE1. " mode2=". MODE2."<BR>\n");
?>
procudes this:
twofish
cbc
cbc
cipher=twofish mode1=cbc mode2=MCRYPT_CBC
Which is expected. From source code analyses it is not even possible that MCRYPT_TWOFISH is defined, but MCRYPT_MODE_CBC is not.
So closing
Previous Comments:
---------------------------------------------------------------------------
[2000-11-30 06:34:30] derick <email protected>
The following is defined in the code (PHP wrapper):
#if HAVE_LIBMCRYPT24
MCRYPT_ENTRY2_2_4(ARCFOUR_IV, "arcfour-iv");
MCRYPT_ENTRY2_2_4(ARCFOUR, "arcfour");
MCRYPT_ENTRY2_2_4(BLOWFISH, "blowfish");
...
MCRYPT_ENTRY2_2_4(MODE_CBC, "cbc");
MCRYPT_ENTRY2_2_4(MODE_CFB, "cfb");
MCRYPT_ENTRY2_2_4(MODE_ECB, "ecb");
MCRYPT_ENTRY2_2_4(MODE_NOFB, "nofb");
MCRYPT_ENTRY2_2_4(MODE_OFB, "ofb");
MCRYPT_ENTRY2_2_4(MODE_STREAM, "stream");
REGISTER_INI_ENTRIES();
#endif
So if MCRYPT_BLOWFISH works, then MCRYPT_MODE_CBC should work too.
I'm going to check this out later.
---------------------------------------------------------------------------
[2000-11-29 19:40:19] barton <email protected>
I have mcrypt libmcrypt 2.4.7.
Following simple script:
define("CIPHER", MCRYPT_TWOFISH);
define("MODE1", MCRYPT_MODE_CBC);
define("MODE2", MCRYPT_CBC);
print("cipher=". CIPHER . " mode1=" . MODE1 . "mode2=" . MODE2 . "<br>n");
What prints is "cipher=twofish mode1=MCRYPT_MODE_CBC MODE2=MCRYPT_CBC"
The mcrypt.h file has #define MCRYPT_CBC "cbc"
so I don't understand?
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8040
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8269 Updated: Compile cant find Sybtcl .... Help!"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8265 Updated: Compile fails for oci8 with Oracle 8.0.4 - missing libs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

