[omemo] Remove pycrypto methods
This commit is contained in:
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user