[Pkg-javascript-commits] [node-sha.js] 15/31: use safe-buffer
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Nov 30 11:23:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit 22adba6c745ca703cce356faa988dfe1d84eefa4
Author: Daniel Cousens <github at dcousens.com>
Date: Tue May 23 14:49:53 2017 +1000
use safe-buffer
---
hash.js | 2 +-
package.json | 2 +-
sha.js | 2 +-
sha1.js | 2 +-
sha224.js | 2 +-
sha256.js | 2 +-
sha384.js | 2 +-
sha512.js | 2 +-
test/vectors.js | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/hash.js b/hash.js
index ef9bf8c..3d0e08e 100644
--- a/hash.js
+++ b/hash.js
@@ -1,4 +1,4 @@
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
// prototype class for hash functions
function Hash (blockSize, finalSize) {
diff --git a/package.json b/package.json
index 1160216..afc5810 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
},
"dependencies": {
"inherits": "^2.0.1",
- "buffer": "^2.3.4"
+ "safe-buffer": "^5.0.1"
},
"devDependencies": {
"buffer": "~2.3.2",
diff --git a/sha.js b/sha.js
index 36409c4..2e27cd8 100644
--- a/sha.js
+++ b/sha.js
@@ -8,7 +8,7 @@
var inherits = require('inherits')
var Hash = require('./hash')
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
var K = [
0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0
diff --git a/sha1.js b/sha1.js
index 29d765d..dfacb4b 100644
--- a/sha1.js
+++ b/sha1.js
@@ -9,7 +9,7 @@
var inherits = require('inherits')
var Hash = require('./hash')
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
var K = [
0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0
diff --git a/sha224.js b/sha224.js
index 96287a2..37bf85c 100644
--- a/sha224.js
+++ b/sha224.js
@@ -9,7 +9,7 @@
var inherits = require('inherits')
var Sha256 = require('./sha256')
var Hash = require('./hash')
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
var W = new Array(64)
diff --git a/sha256.js b/sha256.js
index 6a778a5..9afce95 100644
--- a/sha256.js
+++ b/sha256.js
@@ -8,7 +8,7 @@
var inherits = require('inherits')
var Hash = require('./hash')
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
var K = [
0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
diff --git a/sha384.js b/sha384.js
index 0b8cee8..8435b40 100644
--- a/sha384.js
+++ b/sha384.js
@@ -1,7 +1,7 @@
var inherits = require('inherits')
var SHA512 = require('./sha512')
var Hash = require('./hash')
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
var W = new Array(160)
diff --git a/sha512.js b/sha512.js
index 015df06..07431af 100644
--- a/sha512.js
+++ b/sha512.js
@@ -1,6 +1,6 @@
var inherits = require('inherits')
var Hash = require('./hash')
-var Buffer = require('buffer/').Buffer
+var Buffer = require('safe-buffer').Buffer
var K = [
0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
diff --git a/test/vectors.js b/test/vectors.js
index b389087..622e441 100644
--- a/test/vectors.js
+++ b/test/vectors.js
@@ -1,7 +1,7 @@
var tape = require('tape')
var vectors = require('hash-test-vectors')
// var from = require('bops/typedarray/from')
-var Buffer = require('buffer').Buffer
+var Buffer = require('safe-buffer').Buffer
var createHash = require('../')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list