Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.1

Bug #9876 Overlapping of encrypted data
Submitted: 2007-01-19 08:02 UTC
From: claytonrabenda at gmail dot com Assigned:
Status: No Feedback Package: Crypt_RSA (version 1.0.0)
PHP Version: 5.1.6 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 43 = ?

 
 [2007-01-19 08:02 UTC] claytonrabenda at gmail dot com (Clayton Rabenda)
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.

Comments

 [2009-01-05 08:33 UTC] doconnor (Daniel O'Connor)
Any way you can make a test case so I know when I've fixed it right?
 [2009-03-23 21:06 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: No Feedback