Skip to content

Commit

Permalink
release 0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
srijs committed Sep 18, 2016
1 parent ca8f50a commit e6b2791
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rusha",
"version": "0.8.3",
"version": "0.8.4",
"description": "A high-performance pure-javascript SHA1 implementation suitable for large binary data.",
"main": "rusha.js",
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion rusha.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
};
var padData = function (bin, chunkLen, msgLen) {
bin[chunkLen >> 2] |= 128 << 24 - (chunkLen % 4 << 3);
bin[((chunkLen >> 2) + 2 & ~15) + 14] = msgLen >> 29;
// To support msgLen >= 2 GiB, use a float division when computing the
// high 32-bits of the big-endian message length in bits.
bin[((chunkLen >> 2) + 2 & ~15) + 14] = msgLen / (1 << 29) | 0;
bin[((chunkLen >> 2) + 2 & ~15) + 15] = msgLen << 3;
};
var // Convert a binary string and write it to the heap.
Expand Down
4 changes: 2 additions & 2 deletions rusha.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e6b2791

Please sign in to comment.