Fix TEMP UPLOAD CBC MAC
This commit is contained in:
tonikelope 2019-12-19 12:17:04 +01:00
parent ba9ecc6538
commit 42bc1b107c
4 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.tonikelope</groupId>
<artifactId>MegaBasterd</artifactId>
<version>6.87</version>
<version>6.88</version>
<packaging>jar</packaging>
<dependencies>
<dependency>

View File

@ -53,7 +53,7 @@ import javax.swing.UIManager;
*/
public final class MainPanel {
public static final String VERSION = "6.87";
public static final String VERSION = "6.88";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337;

View File

@ -191,6 +191,8 @@ public class UploadMACGenerator implements Runnable, SecureSingleThreadNotifiabl
mac = true;
}
_upload.setTemp_mac_data(String.valueOf(tot) + "#" + String.valueOf(chunk_id) + "#" + Bin2BASE64(i32a2bin(file_mac)));
if (mac) {
int[] meta_mac = {file_mac[0] ^ file_mac[1], file_mac[2] ^ file_mac[3]};
@ -199,9 +201,6 @@ public class UploadMACGenerator implements Runnable, SecureSingleThreadNotifiabl
LOG.log(Level.INFO, "{0} MAC GENERATOR {1} finished MAC CALCULATION. Waiting workers to finish uploading (if any)...", new Object[]{Thread.currentThread().getName(), getUpload().getFile_name()});
} else {
_upload.setTemp_mac_data(String.valueOf(tot) + "#" + String.valueOf(chunk_id) + "#" + Bin2BASE64(i32a2bin(file_mac)));
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 189 KiB