diff options
Diffstat (limited to 'node_modules/sha.js/sha512.js')
-rw-r--r-- | node_modules/sha.js/sha512.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_modules/sha.js/sha512.js b/node_modules/sha.js/sha512.js index 204a7b830..fb28f2f6b 100644 --- a/node_modules/sha.js/sha512.js +++ b/node_modules/sha.js/sha512.js @@ -1,5 +1,6 @@ var inherits = require('inherits') var Hash = require('./hash') +var Buffer = require('safe-buffer').Buffer var K = [ 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd, @@ -237,7 +238,7 @@ Sha512.prototype._update = function (M) { } Sha512.prototype._hash = function () { - var H = new Buffer(64) + var H = Buffer.allocUnsafe(64) function writeInt64BE (h, l, offset) { H.writeInt32BE(h, offset) |