[omemo] Remove pycrypto methods

This commit is contained in:
Philipp Hörist
2018-04-09 14:34:59 +02:00
parent 9c4bdb1d1f
commit 8c62878ca2

View File

@@ -273,8 +273,8 @@ class OmemoState:
return result return result
def create_gc_msg(self, from_jid, jid, plaintext): def create_gc_msg(self, from_jid, jid, plaintext):
key = get_random_bytes(16) key = os.urandom(16)
iv = get_random_bytes(16) iv = os.urandom(16)
encrypted_keys = {} encrypted_keys = {}
room = jid room = jid
encrypted_jids = [] encrypted_jids = []