Progressive hashing result of SHA512 does not support .toString
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
What steps will reproduce the problem?
var previous = CryptoJS.SHA512("salt").toString(); // yields a hex-string
var hash = CryptoJS.algo.SHA512.create();
hash.update( previous );
hash.update( "test" );
hash.finalize();
result = roundHash.toString(); // yields "object"
What is the expected output? What do you see instead?
Inspecting hash._hash.words yield "m.Word.f.extend.init" object fields.
I expected regular word values (like the ones created during the calculation of
the non-progresive hash).
What version of the product are you using? On what operating system?
CryptoJS 3.1.2
Tested with Chrome 25.0.1364.58
Original issue reported on code.google.com by arne.cl...@gmail.com
on 2 Feb 2013 at 8:35
Google Code Exporter commented
The hash result is returned by the finalize method.
var result = hash.finalize().toString(); // yields a hex-string
Original comment by Jeff.Mott.OR
on 2 Feb 2013 at 9:39
Google Code Exporter commented
Original comment by Jeff.Mott.OR
on 3 Feb 2013 at 1:24
- Changed state: Invalid