Change Parity of Scrambler

This commit is contained in:
Sn0wStorm
2019-10-11 18:06:18 +02:00
parent 562f96e4b1
commit 2fc0b32179
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@ public class XORUnscrambleStream extends FilterInputStream {
return;
}
xorStream = new SeedInputStream(seed ^ id);
if (read() != 209) { // Parity/Sanity
if (read() != ((int) (seed >> 48) & 0xFF)) { // Parity/Sanity
throw new InvalidKeyException("Could not read scrambled data, is the seed wrong?");
}
}