From 09f27f0dd7c665fcd765c67aef37ddc7bd53783e Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 3 Oct 2019 20:51:45 +0200 Subject: [PATCH] Update Telegram's RSA keys --- telethon/crypto/rsa.py | 59 ++++++++++++++++++++++++++----- telethon/network/authenticator.py | 8 +++++ 2 files changed, 59 insertions(+), 8 deletions(-) diff --git a/telethon/crypto/rsa.py b/telethon/crypto/rsa.py index e03ce188..f6ba084a 100644 --- a/telethon/crypto/rsa.py +++ b/telethon/crypto/rsa.py @@ -14,7 +14,7 @@ except ImportError: from ..tl import TLObject -# {fingerprint: Crypto.PublicKey.RSA._RSAobj} dictionary +# {fingerprint: (Crypto.PublicKey.RSA._RSAobj, old)} dictionary _server_keys = {} @@ -47,26 +47,27 @@ def _compute_fingerprint(key): return struct.unpack('