From 7ee70e8a2b8d198813e0259b8d8f3a080d2b6376 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 20:55:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20length=20of=20encryption?= =?UTF-8?q?=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/extractFileStream.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssn/extractFileStream.ts b/src/ssn/extractFileStream.ts index 2a5443b..ff6d7e8 100644 --- a/src/ssn/extractFileStream.ts +++ b/src/ssn/extractFileStream.ts @@ -21,8 +21,8 @@ export default async function extractFileStream(file: ISsnFileEntry, inputStream const encryptionHeader = curStream.read(12); if (encryptionHeader === null) { //need to wait until data is ready for reading - await waitReadableLength(curStream, 30); - curStream.read(30); + await waitReadableLength(curStream, 12); + curStream.read(12); } }