🚑 Fix chunk decryption
This commit is contained in:
parent
4f0adf8931
commit
1d1b8930cf
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ export default function decryptChunk(encryptedChunk: Buffer, [key0, key1, key2]:
|
|||
const decryptedChunk = new Buffer(encryptedChunk.length);
|
||||
const dvOut = new DataView(decryptedChunk.buffer);
|
||||
|
||||
for (let i = 0; i < length; i += 1) {
|
||||
for (let i = 0; i < encryptedChunk.length; i += 1) {
|
||||
//read and decrypt byte
|
||||
let curChar = dv.getUint8(i);
|
||||
const keyPart = (key2 | 2) & 0xFFFF;
|
||||
|
|
Loading…
Reference in a new issue