php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14606 mcrypt_ofb with tripledes : 2.2.7 and 2.4.18 different behavior
Submitted: 2001-12-19 12:33 UTC Modified: 2001-12-20 02:52 UTC
From: jeanfrancois dot lecam at altiplano dot fr Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.1.0 OS: redhat 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeanfrancois dot lecam at altiplano dot fr
New email:
PHP Version: OS:

 

 [2001-12-19 12:33 UTC] jeanfrancois dot lecam at altiplano dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-19 14:26 UTC] 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-20 02:52 UTC] jeanfrancois dot lecam at altiplano dot fr
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.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 09:01:28 2025 UTC