kaijajan / as3crypto

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

pkcs1pad crashes in flex application compiled for iOS #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create empty Flex mobile application that runs RSAKeyTest 
2. launch it: (run or debug)
  target platform: Apple iOS 
  launch method:on device 
  packaging method: standart 

expected output: test in RSAKeyTest passes
got: RSAKeyTest.testSmoke() crashes with error

ReferenceError: Error #1069: Property -1 not found on flash.utils.ByteArray and 
there is no default value.
    at com.hurlant.crypto.rsa::RSAKey/pkcs1pad()[\src\com\hurlant\crypto\rsa\RSAKey.as:164]
    at com.hurlant.crypto.rsa::RSAKey/pkcs1pad()
    at com.hurlant.crypto.rsa::RSAKey/_encrypt()[\src\com\hurlant\crypto\rsa\RSAKey.as:127]
    at com.hurlant.crypto.rsa::RSAKey/encrypt()[\src\com\hurlant\crypto\rsa\RSAKey.as:101]

Tested on 
 as3crypto r28
 Flex SDK 4.6.0 build 23201, windows

Problem in signed/unsigned mismatch in RSAKey.as:163

suggested solution in attached patch file

Original issue reported on code.google.com by sergey.e...@mind.com on 25 Jan 2012 at 3:42

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch!

Original comment by drab...@zoobe.com on 13 Jun 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Maybe a bug with AIR SDK, and fixed in 3.3?

http://blog.flexibleair.pl/2012/02/adobe-air-ios-packager-bug/

http://zonmobiledev.com/index.php/blog/80-signednot-signed-compare-issue-in-air-
packager-for-ios

https://bugbase.adobe.com/index.cfm?event=bug&id=3010515

https://bugbase.adobe.com/index.cfm?event=bug&id=3155649

Original comment by armando....@gmail.com on 8 Sep 2012 at 11:38