Bug #9876 [Fbk->NoF]: Overlapping of encrypted data
| From: | daniel dot oconnor at gmail dot com | Date: | Mon, 23 Mar 2009 17:06:25 +0000 |
| Subject: | Bug #9876 [Fbk->NoF]: Overlapping of encrypted data | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-246@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=9876&edit=1
ID: 9876
Updated by: daniel.oconnor@gmail.com
Reported By: claytonrabenda at gmail dot com
Summary: Overlapping of encrypted data
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Crypt_RSA
Operating System: Linux
Package Version: 1.0.0
PHP Version: 5.1.6
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: No Feedback
Previous Comments:
------------------------------------------------------------------------
[2009-01-05 03:33:28] doconnor
Any way you can make a test case so I know when I've fixed it right?
------------------------------------------------------------------------
[2007-01-19 03:02:13] claytonrabenda at gmail dot com
Description:
------------
in encrypytBinary and decryptBinary there is an extra bit of data being
encrypted/decrypted for each chunk_len of data.
suggested fix:
line 373:
$curr_pos += $chunk_len;
should be:
$curr_pos += $chunk_len + 1
line 428:
$bit_pos += $chunk_len;
should be:
$bit_pos += $chunk_len + 1;
This makes is easier to work with other RSA libraries and has no
ill-effect on Crypt_RSA.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=9876&edit=1