From 995d975127013589e5c0780916c6814a1019941e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 9 Aug 2017 09:43:12 +0200 Subject: [PATCH] removed support for fixed IV mode in otr jingle file transfer that hasn't been used since v0.4 or something --- .../eu/siacs/conversations/entities/DownloadableFile.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/DownloadableFile.java b/src/main/java/eu/siacs/conversations/entities/DownloadableFile.java index d0c0f4ed0..638647a92 100644 --- a/src/main/java/eu/siacs/conversations/entities/DownloadableFile.java +++ b/src/main/java/eu/siacs/conversations/entities/DownloadableFile.java @@ -11,9 +11,7 @@ public class DownloadableFile extends File { private long expectedSize = 0; 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 +57,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); } }