[omemo] Support 12bit IVs on httpupload files

This commit is contained in:
Philipp Hörist
2017-08-07 18:09:23 +02:00
parent 00554ce55f
commit 557c14276c

View File

@@ -116,6 +116,11 @@ class FileDecryption:
file.iv = fragment[:16]
if len(file.key) == 32 and len(file.iv) == 16:
return True
file.key = fragment[12:]
file.iv = fragment[:12]
if len(file.key) == 32 and len(file.iv) == 12:
return True
except:
return False
return False