[Pkg-javascript-commits] [node-sha.js] 03/237: HAHA IT WORKS

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:02:50 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 ee9518599957a64d46d8d45aeaae649ec85641c9
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Wed Dec 25 01:00:14 2013 +0700

    HAHA IT WORKS
---
 index.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/index.js b/index.js
index a560c7d..1122ca9 100644
--- a/index.js
+++ b/index.js
@@ -119,10 +119,9 @@ Sha.prototype.final = function () {
 
     if(len === 0) {
       //try doing nothing? YUSS
+      x[(len % 512) >> 5] |= (0x80 << (24 - len % 32));
     }
     else if(len % 512 > 448) {
-      console.log('FILL OVERFLOW')
-//      zeroFill(this._x.buffer, (len % 512)/8)
       x[(len % 512) >> 5] |= (0x80 << (24 - len % 32));
       //len = this._len += (len % 512)
       //compute that hash...
@@ -151,7 +150,6 @@ Sha.prototype.final = function () {
       console.log('OH NOES', len, len % 512)
     }
 
-  x[(len % 512) >> 5] |= (0x80 << (24 - len % 32));
 
 //  x[(((len % 512) + 64 >> 9) << 4) + 15] = len;
 

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