Skip to content

Commit

Permalink
Fixed SHA-256/512 issue with incorrect hashes if input a certain size
Browse files Browse the repository at this point in the history
  • Loading branch information
Caligatio committed Jun 25, 2015
1 parent 3c1d4f2 commit 19d5072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sha_dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ var SUPPORTED_ALGS = 4 | 2 | 1;
{
/* 64-bit variant */
numRounds = 80;
lengthPosition = (((messageLen + 128) >>> 10) << 5) + 31;
lengthPosition = (((messageLen + 129) >>> 10) << 5) + 31;
binaryStringInc = 32;
binaryStringMult = 2;
Int = Int_64;
Expand Down

0 comments on commit 19d5072

Please sign in to comment.