fix util problem
This commit is contained in:
parent
230420fb00
commit
1c1bb068b8
|
@ -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…
Reference in New Issue