Browse Source

fix util problem

patch-2
Manuel Araoz 11 years ago
committed by MattFaus
parent
commit
1c1bb068b8
  1. 2
      util/util.js

2
util/util.js

@ -18,7 +18,7 @@ var ripe160 = exports.ripe160 = function(data) {
throw new Error('arg should be a buffer');
}
if (inBrowser) {
var w = new browser.crypto31.lib.WordArray.init(browser.Crypto.util.bytesToWords(data), data.length);
var w = new browser.crypto31.lib.WordArray.init(Crypto.util.bytesToWords(data), data.length);
var wordArray = browser.crypto31.RIPEMD160(w);
var words = wordArray.words;
var answer = [];

Loading…
Cancel
Save