From 26467816f076242951668204688236c58219d2f6 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 5 Jul 2018 02:37:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Replace=20new=20Buffer()=20by=20?= =?UTF-8?q?Buffer.alloc()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/decryption/decryptChunk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/decryption/decryptChunk.ts b/src/ssn/decryption/decryptChunk.ts index b41ca26..7113ad6 100644 --- a/src/ssn/decryption/decryptChunk.ts +++ b/src/ssn/decryption/decryptChunk.ts @@ -3,7 +3,7 @@ import updateKeys from './lib/updateKeys'; export default function decryptChunk(encryptedChunk: Buffer, [key0, key1, key2]: [number, number, number]): Buffer { const dv = new DataView(encryptedChunk.buffer); - const decryptedChunk = new Buffer(encryptedChunk.length); + const decryptedChunk = Buffer.alloc(encryptedChunk.length); const dvOut = new DataView(decryptedChunk.buffer); for (let i = 0; i < encryptedChunk.length; i += 1) {