~singpolyma/cheogram-android

4f12cf06edb0bffb90a56d6a067fab971096e598 — Daniel Gultsch 5 years ago 9048075
revert back to 16 byte IVs for omemo since ChatSecure doesn’t support 12 byte
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
M src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java => src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java +1 -1
@@ 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);
		}