klattimer/crypto-js

x64-core.js constructor optimization

Opened this issue · 0 comments

What steps will reproduce the problem?
1. SHA512 is too slow. Slower than any other algorithm I use like Zlib or 
AES256.

What is the expected output? What do you see instead?
It should be as fast or twice. :)


What version of the product are you using? On what operating system?
The latest from SVN


Please provide any additional information below.
It seems constructor is faster if the value init is terminated with "| 0" eg.:
            this.high = high | 0;
            this.low = low | 0;

Original issue reported on code.google.com by a...@rigo.sk on 29 Jan 2014 at 1:29