Commit 557c1427 authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Support 12bit IVs on httpupload files

parent 00554ce5
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment