maheshmurag/crypto-js

SHA1(ArrayBuffer) gives frong hash on iPhone

Closed this issue · 2 comments

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:

And same goes for SHA256:
http://jsperf.com/sha256-big-arraybuffer

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

Fails on iOS7 iPad Mini as well.

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