Commit 96c3e17b authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Support 12bit IVs on httpupload files

parent 3bf7dddc
......@@ -134,6 +134,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