beyondzzk / as3crypto

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

Encrypt function works periodically #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I attached mxml application to reproduce the bug. You can see that the 
encrypted string is not always at the same length, and the server reply 
that it corrupted.
2. It occurs statisticly ~25%.
3. The problem is in "_encrypt method -> chunk.toArray(dst);" probably

What is the expected output? What do you see instead?
Expected Output:
src.position: 71(128), 71(256), 71(384), 71(512), 71(640), 71(768), 71
(896), 71(1024), 71(1152), 71(1280), 71(1408), 71(1536), 71(1664), 71
(1792), 71(1920), 71(2048), 71(2176), 71(2304), 71(2432), 71(2560), 
============================ encryptedKey.length: 2560, PlainKey.Length: 
2236

I can see sometimes (25%) the bug:
src.position: 71(128), 71(256), 71(384), 71(512), 71(640), 71(768), 71
(895), 71(1022), 71(1150), 71(1278), 71(1406), 71(1534), 71(1662), 71
(1790), 71(1918), 71(2046), 71(2174), 71(2302), 71(2430), 71(2558), 
============================ encryptedKey.length: 2558, PlainKey.Length: 
2236

What version of the product are you using? On what operating system?
Windows XP SP2, SP3. AS3Crypto 1.3, SDK 3.4

Thanks,

Original issue reported on code.google.com by alon.heller@gmail.com on 15 Nov 2009 at 10:36

Attachments: