Fix typo in authenticator (#3878)

This commit is contained in:
apepenkov 2022-09-24 12:20:19 +03:00 committed by GitHub
parent 9110f9a4e1
commit 7518caae79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)')