aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-09-04 21:00:52 +0200
committerChristian Schneppe <christian@pix-art.de>2017-09-04 21:00:52 +0200
commit376c1e1b97553af7e00313371bf8d4a8b0cc75d9 (patch)
treeea4817ce5874fe6ba07fd6a8f4d545f33a8808bf /src
parent494fb2d3275fe990450c6c1de9a8435dcb317c2f (diff)
reintroduced fixed IV mode for OTR file transfer
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/entities/DownloadableFile.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/DownloadableFile.java b/src/main/java/de/pixart/messenger/entities/DownloadableFile.java
index 6993b6b38..936b8dd61 100644
--- a/src/main/java/de/pixart/messenger/entities/DownloadableFile.java
+++ b/src/main/java/de/pixart/messenger/entities/DownloadableFile.java
@@ -64,6 +64,7 @@ public class DownloadableFile extends File {
System.arraycopy(keyIvCombo, 12, this.aeskey, 0, 32);
} else if (keyIvCombo.length >= 32) {
this.aeskey = new byte[32];
+ this.iv = new byte[]{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0xf};
System.arraycopy(keyIvCombo, 0, aeskey, 0, 32);
}
}