cuing / crypto-js

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

Progressive hashing result of SHA512 does not support .toString #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by Jeff.Mott.OR on 3 Feb 2013 at 1:24