Home » Encryption » Crypt_RSA » Bug #9876
Overlapping of encrypted data
Details
| Submitted | 2007-01-19 08:02 UTC |
|---|---|
| From | claytonrabenda at gmail dot com |
| Status | No Feedback |
| Package | Crypt_RSA |
| PHP Version | 5.1.6 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2007-01-19 08:02 UTC] 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.