[Pkg-javascript-commits] [node-sha.js] 94/237: use buffer methods
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:03:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit 6a572d2a27e20c990f8a32d7c39606a0571f9fe7
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Sun Jan 12 00:05:41 2014 +0700
use buffer methods
---
sha1.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sha1.js b/sha1.js
index b9aec0c..f52e96d 100644
--- a/sha1.js
+++ b/sha1.js
@@ -27,7 +27,7 @@ var LE = true
function Sha1 () {
if(!(this instanceof Sha1)) return new Sha1()
- this._w = new Uint32Array(80)
+ this._w = new Int32Array(80)
Hash.call(this, 16*4, 14*4)
this._h = new Buffer(20) //new Uint8Array(20)
@@ -68,7 +68,7 @@ Sha1.prototype._update = function (array) {
for(var j = 0; j < 80; j++) {
var W = w[j]
= j < 16
- ? X.readInt32BE(j*4)
+ ? /*X.getInt32(j*4, false)*/ X.readInt32BE(j*4)
: rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1)
var t =
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list