From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/sha.js/sha512.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node_modules/sha.js/sha512.js') 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) -- cgit v1.2.3