xinghenese / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

RSA decrypt skips the first byte of data #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Trace the parameter to pkcs1pad in RSAKey.as

What is the expected output? What do you see instead?
The first bit should be 0x00 (from the padding), but instead it is either 0x01, 
or 0x02 (the padType). The first bit is always omitted.

What version of the product are you using? On what operating system?
as3crypto 1.3, Windows 7 64bit, Firefox 3.6, Flash Player 10.1

Original issue reported on code.google.com by myid...@gmail.com on 6 Oct 2010 at 11:25