mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Fix TypeError during data decryption (#3833)
This commit is contained in:
parent
dd51aea4db
commit
9110f9a4e1
|
@ -143,7 +143,7 @@ class MTProtoState:
|
||||||
|
|
||||||
msg_key = body[8:24]
|
msg_key = body[8:24]
|
||||||
aes_key, aes_iv = self._calc_key(self.auth_key.key, msg_key, False)
|
aes_key, aes_iv = self._calc_key(self.auth_key.key, msg_key, False)
|
||||||
body = AES.decrypt_ige(body[24:], aes_key, aes_iv)
|
body = AES.decrypt_ige(bytes(body[24:]), aes_key, aes_iv)
|
||||||
|
|
||||||
# https://core.telegram.org/mtproto/security_guidelines
|
# https://core.telegram.org/mtproto/security_guidelines
|
||||||
# Sections "checking sha256 hash" and "message length"
|
# Sections "checking sha256 hash" and "message length"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user