From 36a66c59da27e35da444c10d132b348fbe132e97 Mon Sep 17 00:00:00 2001 From: Belma Gutlic Date: Tue, 24 Dec 2019 20:38:34 +0100 Subject: [PATCH] Remove empty lines --- src/crypto.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/crypto.ts b/src/crypto.ts index 44088dd..4f4a0b0 100644 --- a/src/crypto.ts +++ b/src/crypto.ts @@ -7,14 +7,12 @@ interface ReturnEncryptionWrapper { const maxPlaintextLength = 65519; - // Returns generator that encrypts payload from the user export function encryptStream(handshake: Handshake): ReturnEncryptionWrapper { return async function * (source) { for await (const chunk of source) { const chunkBuffer = Buffer.from(chunk); - for (let i = 0; i < chunkBuffer.length; i += maxPlaintextLength) { let end = i + maxPlaintextLength; if (end > chunkBuffer.length) { @@ -29,7 +27,6 @@ export function encryptStream(handshake: Handshake): ReturnEncryptionWrapper { } - // Decrypt received payload to the user export function decryptStream(handshake: Handshake): ReturnEncryptionWrapper { return async function * (source) {