[Pkg-javascript-commits] [node-sha.js] 12/237: use dataview

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:02:51 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 bdba2ecbd5877d4e2db012eaaa489467a08fb143
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Thu Dec 26 01:10:30 2013 +0700

    use dataview
---
 index.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/index.js b/index.js
index de7661c..1e1745d 100644
--- a/index.js
+++ b/index.js
@@ -76,12 +76,12 @@ Sha.prototype._final = function () {
   //reorder bytes to little endian...
   var h = this._h
   console.log(hexpp(this._h.buffer))
-  h[0] = reverseByteOrder(h[0])
-  h[1] = reverseByteOrder(h[1])
-  h[2] = reverseByteOrder(h[2])
-  h[3] = reverseByteOrder(h[3])
-  h[4] = reverseByteOrder(h[4])
-
+//  h[0] = reverseByteOrder(h[0])
+//  h[1] = reverseByteOrder(h[1])
+//  h[2] = reverseByteOrder(h[2])
+//  h[3] = reverseByteOrder(h[3])
+//  h[4] = reverseByteOrder(h[4])
+//
   return this
 }
 
@@ -99,7 +99,7 @@ var BE = true
 
 Sha.prototype._update = function (array) {
 
-  var q = true
+  var q = false
 
   var X = this._dvX
   var W = this._dvW
@@ -159,7 +159,7 @@ Sha.prototype._update = function (array) {
   H.setUint32(C, safe_add(c, _c), q)
   H.setUint32(D, safe_add(d, _d), q)
   H.setUint32(E, safe_add(e, _e), q)
-//
+
 //  h[0] = safe_add(a, _a)
 //  h[1] = safe_add(b, _b)
 //  h[2] = safe_add(c, _c)

-- 
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