diff options
Diffstat (limited to 'node_modules/sha.js/sha224.js')
-rw-r--r-- | node_modules/sha.js/sha224.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_modules/sha.js/sha224.js b/node_modules/sha.js/sha224.js index 31899ef48..35541e575 100644 --- a/node_modules/sha.js/sha224.js +++ b/node_modules/sha.js/sha224.js @@ -9,6 +9,7 @@ var inherits = require('inherits') var Sha256 = require('./sha256') var Hash = require('./hash') +var Buffer = require('safe-buffer').Buffer var W = new Array(64) @@ -36,7 +37,7 @@ Sha224.prototype.init = function () { } Sha224.prototype._hash = function () { - var H = new Buffer(28) + var H = Buffer.allocUnsafe(28) H.writeInt32BE(this._a, 0) H.writeInt32BE(this._b, 4) |