[Pkg-javascript-commits] [node-sha.js] 135/237: hash: use update() argument instead
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:03:47 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 0703b9d38e816d71794a6604060a30e26072b6b7
Author: Daniel Cousens <github at dcousens.com>
Date: Thu Sep 4 15:51:20 2014 +1000
hash: use update() argument instead
---
sha1.js | 6 ++----
sha256.js | 4 ++--
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/sha1.js b/sha1.js
index 2b5a09c..c7042b6 100644
--- a/sha1.js
+++ b/sha1.js
@@ -32,7 +32,7 @@ module.exports = function (Buffer, Hash) {
if(!(this instanceof Sha1)) return new Sha1()
this._w = W
Hash.call(this, 16*4, 14*4)
-
+
this._h = null
this.init()
}
@@ -61,10 +61,8 @@ module.exports = function (Buffer, Hash) {
: X.readInt32BE(i)
}
- Sha1.prototype._update = function (array) {
+ Sha1.prototype._update = function (X) {
- var X = this._block
- var h = this._h
var a, b, c, d, e, _a, _b, _c, _d, _e
a = _a = this._a
diff --git a/sha256.js b/sha256.js
index db0d220..05fdbd5 100644
--- a/sha256.js
+++ b/sha256.js
@@ -103,8 +103,8 @@ module.exports = function (Buffer, Hash) {
return (S(x, 17) ^ S(x, 19) ^ R(x, 10));
}
- Sha256.prototype._update = function(m) {
- var M = this._block
+ Sha256.prototype._update = function(M) {
+
var W = this._w
var a, b, c, d, e, f, g, h
var T1, T2
--
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