diff options
Diffstat (limited to 'node_modules/sha.js/sha384.js')
-rw-r--r-- | node_modules/sha.js/sha384.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_modules/sha.js/sha384.js b/node_modules/sha.js/sha384.js index dc483120c..afc85e51f 100644 --- a/node_modules/sha.js/sha384.js +++ b/node_modules/sha.js/sha384.js @@ -1,6 +1,7 @@ var inherits = require('inherits') var SHA512 = require('./sha512') var Hash = require('./hash') +var Buffer = require('safe-buffer').Buffer var W = new Array(160) @@ -36,7 +37,7 @@ Sha384.prototype.init = function () { } Sha384.prototype._hash = function () { - var H = new Buffer(48) + var H = Buffer.allocUnsafe(48) function writeInt64BE (h, l, offset) { H.writeInt32BE(h, offset) |