aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-13 23:06:37 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-13 23:06:37 +0200
commitdfdf520ed82a18f2b5af4d458c823252e37d46a4 (patch)
tree08f877583b0d570a963eca6dbb7dc86bfec43e58 /src/main/java/de/pixart
parent0069f0cc9b319fcccaac3e4329290853730b7eee (diff)
removed support for fixed IV mode in otr jingle file transfer that hasn't been used since v0.4 or something
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/entities/DownloadableFile.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/DownloadableFile.java b/src/main/java/de/pixart/messenger/entities/DownloadableFile.java
index f0a3aa00c..94fae97a4 100644
--- a/src/main/java/de/pixart/messenger/entities/DownloadableFile.java
+++ b/src/main/java/de/pixart/messenger/entities/DownloadableFile.java
@@ -12,8 +12,7 @@ public class DownloadableFile extends File {
private byte[] sha1sum;
private byte[] aeskey;
- private byte[] iv = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
- 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0xf};
+ private byte[] iv;
public DownloadableFile(String path) {
super(path);
@@ -59,9 +58,6 @@ public class DownloadableFile extends File {
} else if (keyIvCombo.length >= 32) {
this.aeskey = new byte[32];
System.arraycopy(keyIvCombo, 0, aeskey, 0, 32);
- } else if (keyIvCombo.length >= 16) {
- this.aeskey = new byte[16];
- System.arraycopy(keyIvCombo, 0, this.aeskey, 0, 16);
}
}