From 394862dbd31a938be8e953e0edaa73d2f4fb9769 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 18 Oct 2019 21:10:19 +0200 Subject: Fix wrong size being reported for OMEMO encrypted HTTP file transfers Fixes #630 --- plugins/omemo/src/file_transfer/file_encryptor.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/omemo') diff --git a/plugins/omemo/src/file_transfer/file_encryptor.vala b/plugins/omemo/src/file_transfer/file_encryptor.vala index 5b4e4d96..d7c38736 100644 --- a/plugins/omemo/src/file_transfer/file_encryptor.vala +++ b/plugins/omemo/src/file_transfer/file_encryptor.vala @@ -35,7 +35,7 @@ public class OmemoFileEncryptor : Dino.FileEncryptor, Object { omemo_http_file_meta.iv = iv; omemo_http_file_meta.key = key; - omemo_http_file_meta.size = file_transfer.size; + omemo_http_file_meta.size = file_transfer.size + 16; omemo_http_file_meta.mime_type = "omemo"; file_transfer.input_stream = new ConverterInputStream(file_transfer.input_stream, new SymmetricCipherEncrypter((owned) cipher)); } catch (Crypto.Error error) { -- cgit v1.2.3-70-g09d2