anotherim/src
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
..
compat/java/eu/siacs/conversations use EmojiWrapperEditText for most relevant text inputs 2018-06-29 13:40:55 +02:00
conversations pulled translations from transifex 2020-03-07 23:15:43 +01:00
conversationsFree/java/eu/siacs/conversations/utils use installreferrer libray instead of broadcast listener 2020-01-11 11:08:09 +01:00
conversationsPlaystore/java/eu/siacs/conversations/utils use installreferrer libray instead of broadcast listener 2020-01-11 11:08:09 +01:00
free/java/eu/siacs/conversations/services attempt to unregister when receiving push for channel no longer joined 2019-06-26 17:40:12 +02:00
freeCompat/java/eu/siacs/conversations/ui/service EmojiService: use replaceAll=false on android 8 2018-07-05 13:22:32 +02:00
main use 16 byte IVs for http upload files larger than 768KiB 2020-03-08 13:13:19 +01:00
playstore catch more firebase library bugs 2019-08-06 15:04:59 +02:00
playstoreCompat EmojiService: use replaceAll=false on android 8 2018-07-05 13:22:32 +02:00
quicksy pulled translations from transifex 2020-03-07 23:15:43 +01:00
system/java/eu/siacs/conversations use EmojiWrapperEditText for most relevant text inputs 2018-06-29 13:40:55 +02:00