FIXED FOREVER YES :D:D:D

This commit is contained in:
ayunami2000 2022-01-23 20:30:47 -05:00
parent d5caf5a313
commit 9093524d53
2 changed files with 17674 additions and 17674 deletions

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@ public class WebsocketNetworkManager implements INetworkManager {
private boolean isOutputEncrypted;
private SecretKey sharedKeyForEncryption;
private final boolean logpackets=true;
private final boolean logpackets=false;
private BufferedBlockCipher inputBufferedBlockCipher=null;
private BufferedBlockCipher outputBufferedBlockCipher=null;
@ -125,11 +125,11 @@ public class WebsocketNetworkManager implements INetworkManager {
oldDecryptedChunkBuffer = null;
}
byte[] block = new byte[2048];
byte[] decryp = new byte[this.inputBufferedBlockCipher.getOutputSize(2048)];
while (stream.remaining() >= 2048) {
byte[] block = new byte[/*2048*/32];
byte[] decryp = new byte[this.inputBufferedBlockCipher.getOutputSize(/*2048*/32)];
while (stream.remaining() >= /*2048*/32) {
stream.get(block);
int i = this.inputBufferedBlockCipher.processByte(block, 0, 2048, decryp, 0);
int i = this.inputBufferedBlockCipher.processByte(block, 0, /*2048*/32, decryp, 0);
ByteBuffer chunk = ByteBuffer.allocate(i);
chunk.put(decryp, 0, i);
chunk.flip();