anotherim/src/main/java/eu/siacs/conversations
Daniel Gultsch aecb771ab5 use 16 byte IVs for http upload files larger than 768KiB
Ever since Android 9+ switched to Conscrypt we can no longer efficiently
encrypt (and decrypt) large files with AES-GCM. We did’t notice this before
because when using 16 byte IVs even modern Androids will fall back to bouncy
castle. However the 'bug'/'feature' in Conscrypt surfaced when we switched over
to 12 byte IVs (which uses Conscrypt on Android 9+)
Switching back entirely to 16 byte IVs is undesirable as this would break
compatibility with Monal. So we end up with a weird compromise where we use
12 byte for normale plain text OMEMO messages and 'small' files where the
inefficiencies aren’t a problem.

The result of this commit is that Monal won’t be able to receive our files
larger than 768KiB. However the alternative is that Conversations would always
OOM when attempting to send larger files (where large depends on the available
RAM.)

fixes #3653
2020-03-08 13:13:19 +01:00
..
android basic phone number sync 2018-10-31 13:33:55 +01:00
crypto use 16 byte IVs for http upload files larger than 768KiB 2020-03-08 13:13:19 +01:00
entities use 16 byte IVs for http upload files larger than 768KiB 2020-03-08 13:13:19 +01:00
generator use Base64.NO_WRAP instead of trim() 2019-12-04 17:35:06 +01:00
http use 16 byte IVs for http upload files larger than 768KiB 2020-03-08 13:13:19 +01:00
parser fix button alignment on Andrid <4.4 2020-01-24 10:38:54 +01:00
persistance show pdf previews in media browser 2020-02-14 16:02:15 +01:00
services when setting moderated also set non standard field to not make users participants by default 2020-03-02 11:11:23 +01:00
ui avoid bundled source selection that comes with ImageCropper on Android 10 2020-03-05 13:17:18 +01:00
utils fix typo (#3646) 2020-02-29 15:02:36 +01:00
xml fix button alignment on Andrid <4.4 2020-01-24 10:38:54 +01:00
xmpp support registration via pars tokens 2020-01-09 17:42:02 +01:00
Config.java use 16 byte IVs for http upload files larger than 768KiB 2020-03-08 13:13:19 +01:00