[Pkg-javascript-commits] [node-create-hash] 30/40: streaming ripemd

Bastien Roucariès rouca at moszumanska.debian.org
Sat May 27 14:10:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-create-hash.

commit 037b05892b5ce600d58f55d16728469cd1a7bee9
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date:   Fri Apr 28 14:39:13 2017 -0400

    streaming ripemd
---
 browser.js   | 4 ++--
 package.json | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/browser.js b/browser.js
index 1642270..56a46d8 100644
--- a/browser.js
+++ b/browser.js
@@ -1,7 +1,7 @@
 'use strict'
 var inherits = require('inherits')
 var md5 = require('./md5')
-var rmd160 = require('ripemd160')
+var RIPEMD160 = require('ripemd160')
 var sha = require('sha.js')
 
 var Base = require('cipher-base')
@@ -46,7 +46,7 @@ Hash.prototype._final = function () {
 module.exports = function createHash (alg) {
   alg = alg.toLowerCase()
   if (alg === 'md5') return new HashNoConstructor(md5)
-  if (alg === 'rmd160' || alg === 'ripemd160') return new HashNoConstructor(rmd160)
+  if (alg === 'rmd160' || alg === 'ripemd160') return new Hash(new RIPEMD160())
 
   return new Hash(sha(alg))
 }
diff --git a/package.json b/package.json
index 7ba2de7..cc76249 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
   "dependencies": {
     "cipher-base": "^1.0.1",
     "inherits": "^2.0.1",
-    "ripemd160": "^1.0.0",
+    "ripemd160": "^2.0.0",
     "sha.js": "^2.4.0"
   }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-create-hash.git



More information about the Pkg-javascript-commits mailing list