php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35069 4.4.1 update seriously breaks mcrypt decryption
Submitted: 2005-11-02 18:12 UTC Modified: 2005-11-02 20:20 UTC
From: greg at warprecords dot com Assigned:
Status: Not a bug Package: mcrypt related
PHP Version: 4.4.1 OS: FreeBSD 5.3R-p5
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: greg at warprecords dot com
New email:
PHP Version: OS:

 

 [2005-11-02 18:12 UTC] greg at warprecords dot com
Description:
------------
Upgraded to 4.4.1 from 4.4.0 via FreeBSD ports broke some code 
we use to decrypt Blowfish encrypted strings generated and 
handled by PHP and passed between two servers.

Encrypting with 4.4.1 
and decrypting with 4.4.0
works fine, We have fallen back to this.

Encrypting with 4.4.1
and decrypting with 4.4.1
is broken.

Not tried 4.4.0 to 4.4.1.


Reproduce code:
---------------
$SID = @mcrypt_ecb(MCRYPT_Blowfish, $crypt_key, $SID, MCRYPT_DECRYPT);

Expected result:
----------------
Encrypted string is decrypted correctly.

Actual result:
--------------
Encrypted string is decrypted as garbage.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-02 18:58 UTC] sniper@php.net
We don't support any ports. Reopen if you can reproduce this with PHP build from the sources found here:

http://www.php.net/downloads.php
 [2005-11-02 20:20 UTC] derick@php.net
Besides that, there were no changes in mcrypt for a long time...
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 01:01:24 2021 UTC