mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Check g when password's prime is known to be good
This commit is contained in:
parent
18f457a41d
commit
382106aafb
|
@ -62,7 +62,8 @@ def check_prime_and_good(prime_bytes: bytes, g: int):
|
||||||
0x6F, 0x4F, 0xAD, 0xF0, 0x34, 0xB1, 0x04, 0x03, 0x11, 0x9C, 0xD8, 0xE3, 0xB9, 0x2F, 0xCC, 0x5B))
|
0x6F, 0x4F, 0xAD, 0xF0, 0x34, 0xB1, 0x04, 0x03, 0x11, 0x9C, 0xD8, 0xE3, 0xB9, 0x2F, 0xCC, 0x5B))
|
||||||
|
|
||||||
if good_prime == prime_bytes:
|
if good_prime == prime_bytes:
|
||||||
return # It's good
|
if g in (3, 4, 5, 7):
|
||||||
|
return # It's good
|
||||||
|
|
||||||
check_prime_and_good_check(int.from_bytes(prime_bytes, 'big'), g)
|
check_prime_and_good_check(int.from_bytes(prime_bytes, 'big'), g)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user