Skip to content

Commit

Permalink
Fix typo in authenticator (#3878)
Browse files Browse the repository at this point in the history
  • Loading branch information
apepenkov authored Sep 24, 2022
1 parent 9110f9a commit 7518caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telethon/_network/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def do_authentication(sender):
# dh_prime - 2^{2048-64} as well.
# (https://core.telegram.org/mtproto/auth_key#dh-key-exchange-complete)
if not (1 < g < (dh_prime - 1)):
raise SecurityError('g_a is not within (1, dh_prime - 1)')
raise SecurityError('g is not within (1, dh_prime - 1)')

if not (1 < g_a < (dh_prime - 1)):
raise SecurityError('g_a is not within (1, dh_prime - 1)')
Expand Down

0 comments on commit 7518caa

Please sign in to comment.