aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-10-20 21:51:36 +0200
committerChristian Schneppe <christian@pix-art.de>2018-10-20 21:51:36 +0200
commit68ffe98e510647a706c364648a5836f8a47ab10f (patch)
tree27b4d4e43acbf73685137e649cb12956598e9020
parent1b8a0e6d50eb2be5350d5b38ee84aa9ad1e526e2 (diff)
revert back to 16 byte IVs for omemo since ChatSecure doesn't support 12 byte
-rw-r--r--src/main/java/de/pixart/messenger/http/HttpUploadConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
index dfe616c4d..589e46d6c 100644
--- a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
+++ b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
@@ -105,7 +105,7 @@ public class HttpUploadConnection implements Transferable {
if (Config.ENCRYPT_ON_HTTP_UPLOADED
|| message.getEncryption() == Message.ENCRYPTION_AXOLOTL
|| message.getEncryption() == Message.ENCRYPTION_OTR) {
- this.key = new byte[44];
+ this.key = new byte[48];
mXmppConnectionService.getRNG().nextBytes(this.key);
this.file.setKeyAndIv(this.key);
}