PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Encryption » Crypt_RSA » Bug #9876

Overlapping of encrypted data

Details

Submitted2007-01-19 08:02 UTC
Fromclaytonrabenda at gmail dot com
StatusNo Feedback
PackageCrypt_RSA
PHP Version5.1.6
OSLinux
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.