[Pkg-javascript-commits] [node-browserify-aes] 04/10: missing safe buffer imports

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 12:42:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-browserify-aes.

commit d43b0dd415aadc63e2ba8f472b403f9c26a0099b
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date:   Wed Oct 18 11:37:34 2017 -0400

    missing safe buffer imports
---
 modes/cfb8.js | 2 ++
 modes/ctr.js  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/modes/cfb8.js b/modes/cfb8.js
index 7f0db45..c0708f9 100644
--- a/modes/cfb8.js
+++ b/modes/cfb8.js
@@ -1,3 +1,5 @@
+var Buffer = require('safe-buffer').Buffer
+
 function encryptByte (self, byteParam, decrypt) {
   var pad = self._cipher.encryptBlock(self._prev)
   var out = pad[0] ^ byteParam
diff --git a/modes/ctr.js b/modes/ctr.js
index 4a84e1b..e68f13c 100644
--- a/modes/ctr.js
+++ b/modes/ctr.js
@@ -1,5 +1,5 @@
 var xor = require('buffer-xor')
-
+var Buffer = require('safe-buffer').Buffer
 var incr32 = require('../incr32')
 
 function getBlock (self) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browserify-aes.git



More information about the Pkg-javascript-commits mailing list