diff --git a/src/crypto/streaming.ts b/src/crypto/streaming.ts index 263e0a2..42a9293 100644 --- a/src/crypto/streaming.ts +++ b/src/crypto/streaming.ts @@ -21,7 +21,7 @@ export function encryptStream (handshake: IHandshake): Transform { } // Decrypt received payload to the user -export function decryptStream (handshake: IHandshake): Transform { +export function decryptStream (handshake: IHandshake): Transform { return async function * (source) { for await (const chunk of source) { for (let i = 0; i < chunk.length; i += NOISE_MSG_MAX_LENGTH_BYTES) {