reintroduced fixed IV mode for OTR file transfer. fixes #2595

This commit is contained in:
Daniel Gultsch 2017-08-23 22:37:13 +02:00
parent e6a67a6c26
commit f4ff644338
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,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);
}
}