[AC-1901] Javascript Whirlpool implementation causes null-pointer exception
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-01-12T06:23:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | core, defect, ios |
Reporter | Kenan Sulayman |
Assignee | Ritu Agrawal |
Created | 2013-12-10T03:07:07.000+0000 |
Updated | 2016-03-08T07:40:49.000+0000 |
Description
We're requiring client-side hashing for logging into some of our company-internal infrastructure. That is, I took the same code we use on our web-login to Titanium. When pasting the attached code to /any/ place in the code, Titanium will crash with a null-pointer exception.
It looks like Titanium has troubles with reading strings using the \u<0000> notation inside JavascriptCore.
If you like pictures, checkout the attached screenshot.
I can't really do anything without this. Is there a way to hook openSSL's crypto-functions or at least somehow get a working Whirlpool implementation? If not, let's see how this evolves.
Attachments
[~kenansulayman] Would it be possible for you to provide a simple Titanium test case that can help us reproduce this issue?
I had to add missing semi colons to the provided test case but it works fine after that. Here is the code and output. Let us know if it does not resolve your issue and we would be happy to reopen the ticket.
[INFO] : test: b913d5bbb8e461c2c5961cbe0edcdadfd29f068225ceb37da6defcf89849368f8c6c2eb6a4c4ac75775d032a0ecfdfe8550573062b653fe92fc7b8fb3b7be8d6