diff --git a/src/ssn/streams/decryptStream.ts b/src/ssn/streams/decryptStream.ts index 3343e10..1c31c5b 100644 --- a/src/ssn/streams/decryptStream.ts +++ b/src/ssn/streams/decryptStream.ts @@ -1,8 +1,8 @@ import * as stream from 'stream'; import getDecryptor from '../decryption/decryptChunk'; -export default function decryptStream(inputStream: stream.Readable, [key0, key1, key2]: [number, number, number]): stream.Readable { - const decryptor = getDecryptor([key0, key1, key2]); +export default function decryptStream(inputStream: stream.Readable, decryptionKeys: [number, number, number]): stream.Readable { + const decryptor = getDecryptor(decryptionKeys); const outStream = new stream.Readable({ read(size) {