dreamapplehappy / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

SHA1(ArrayBuffer) gives frong hash on iPhone #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
http://jsperf.com/sha1-big-arraybuffer

What is the expected output? What do you see instead?
The shame SHA1 value returned in Chrome (and checked for in the test) and by 
other hash engines.

What version of the product are you using? On what operating system?
iPhone 3gs running iOS 6.1.3

Please provide any additional information below.
It also doesn't run on IE11, failing on an undefined Uint8ClampedArray.

Original issue reported on code.google.com by lapo.luchini on 15 Dec 2013 at 12:28

Attachments:

GoogleCodeExporter commented 9 years ago
And same goes for SHA256:
http://jsperf.com/sha256-big-arraybuffer

Original comment by lapo.luchini on 15 Dec 2013 at 4:02

GoogleCodeExporter commented 9 years ago
Fails on iOS7 iPad Mini as well.

Original comment by mmast...@gmail.com on 8 Jan 2014 at 5:53