mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 16:24:15 +03:00
Fix auth_key is unsigned
This commit is contained in:
parent
bd3dd371a2
commit
833aeb86eb
|
@ -127,7 +127,7 @@ class MtProtoSender:
|
||||||
+ message.to_bytes()
|
+ message.to_bytes()
|
||||||
|
|
||||||
msg_key = utils.calc_msg_key(plain_text)
|
msg_key = utils.calc_msg_key(plain_text)
|
||||||
key_id = struct.pack('<q', self.session.auth_key.key_id)
|
key_id = struct.pack('<Q', self.session.auth_key.key_id)
|
||||||
key, iv = utils.calc_key(self.session.auth_key.key, msg_key, True)
|
key, iv = utils.calc_key(self.session.auth_key.key, msg_key, True)
|
||||||
cipher_text = AES.encrypt_ige(plain_text, key, iv)
|
cipher_text = AES.encrypt_ige(plain_text, key, iv)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user