Bug #14606 Updated: mcrypt_ofb with tripledes : 2.2.7 and 2.4.18 different behavior

From: Date: Thu, 20 Dec 2001 07:52:14 +0000
Subject: Bug #14606 Updated: mcrypt_ofb with tripledes : 2.2.7 and 2.4.18 different behavior
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74530@lists.php.net to get a copy of this message
ID: 14606 User updated by: jeanfrancois.lecam@altiplano.fr Reported By: jeanfrancois.lecam@altiplano.fr Status: Closed Bug Type: mcrypt related Operating System: redhat 7.2 PHP Version: 4.1.0 New Comment: I first thought of a problem with libmcrypt itself... According to its author, 3DES has not changed (see below). I'll probably have to decrypt my data with php-4.0.6-libmcrypt-2.2.7 and re-encrypt it with php-4.0.6-libmcrypt-2.4.18... Grrreat :-) ----- Original Message ----- From: "Nikos Mavroyanopoulos" <nmav@hellug.gr> To: "Jean-Francois LE CAM" <JeanFrancois.LeCam@altiplano.fr> Sent: Wednesday, December 19, 2001 6:16 PM Subject: Re: libmcrypt question (help!) > On Wed, 19 Dec 2001 18:19:51 +0100 "Jean-Francois LE CAM" > <JeanFrancois.LeCam@altiplano.fr> wrote: > > > Hi Nikos, > > I have been using libmcrypt for quite a long time now together with php. > > My running conf is php-4.0.6 / libmcrypt-2.2.7 > > Trying to install php-4.1.0, I was said to upgrade to libmcrypt-2.4 (because > > of a bug that will be fixed in php-4.1.1). > > Is it possible that the TripleDES decryption does not give the same result > > under libmcrypt-2.2.7 and libmcrypt-2.4.18 ? > > That is what I suspect, and it would be rather baaaad for me since I have a > > database containing data encrypted with 2.2.7 that I now wish to use with > > 2.4.18. > > No 3DES has not changed at all. But you may want to play with the > mcrypt functions in php (to get them used in a compatible way). > I do not know more, you'd better ask in a php group or something. Previous Comments: ------------------------------------------------------------------------ [2001-12-19 14:26:17] derick@php.net It is possible a problem in libmcrypt itself . A lot has changed in there that my have broke backwrd compability. It's not a PHP bug, because nothing has changed regarding to this between php 4.0.6 and 4.1.0. I'm closing this one. Derick ------------------------------------------------------------------------ [2001-12-19 12:33:01] jeanfrancois.lecam@altiplano.fr Using exactly the same input data, the following lines won't return the same decryption result : php-4.0.6 / libmcrypt-2.2.7 : mcrypt_ofb("MCRYPT_TripleDES",$realkey,$ct,MCRYPT_DECRYPT,$iv); php-4.1.0 / libmcrypt-2.4.18 : mcrypt_ofb(MCRYPT_TripleDES, $realkey, $ct, MCRYPT_DECRYPT, $iv); I have data encrypted with libmcrypt-2.2.7 that I want to use with libmcrypt-2.4.18, but I can not !!! Thanks in adance, JF ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14606&edit=1

« previous php.dev (#74530) next »