Skip to content

pkcs1pad crashes in flex application compiled for iOS #72

@GoogleCodeExporter

Description

@GoogleCodeExporter
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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions