mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Add OpenSSL assertion on authenticator.py (#453)
aes_ige.c(88): OpenSSL internal error, assertion failed
This commit is contained in:
parent
5a4d6d4a57
commit
b42b4bb326
|
@ -113,6 +113,8 @@ def _do_authentication(connection):
|
||||||
key, iv = utils.generate_key_data_from_nonce(
|
key, iv = utils.generate_key_data_from_nonce(
|
||||||
res_pq.server_nonce, new_nonce
|
res_pq.server_nonce, new_nonce
|
||||||
)
|
)
|
||||||
|
if server_dh_params.encrypted_answer % 16 != 0:
|
||||||
|
raise SecurityError('AES block size missmatch')
|
||||||
plain_text_answer = AES.decrypt_ige(
|
plain_text_answer = AES.decrypt_ige(
|
||||||
server_dh_params.encrypted_answer, key, iv
|
server_dh_params.encrypted_answer, key, iv
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user