diff options
author | Marvin W <git@larma.de> | 2019-10-18 21:10:19 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-10-18 21:10:19 +0200 |
commit | 394862dbd31a938be8e953e0edaa73d2f4fb9769 (patch) | |
tree | b4bfe7fa5a8f1c2795a6eb0cad1c1882dc9a92bb /plugins/omemo/src | |
parent | e330e60f83e6e46bbc3d320711709f2448b802e7 (diff) | |
download | dino-394862dbd31a938be8e953e0edaa73d2f4fb9769.tar.gz dino-394862dbd31a938be8e953e0edaa73d2f4fb9769.zip |
Fix wrong size being reported for OMEMO encrypted HTTP file transfers
Fixes #630
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r-- | plugins/omemo/src/file_transfer/file_encryptor.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |