From 39c04cb11719c4bc5138f1a2769e2efea9ea45ce Mon Sep 17 00:00:00 2001 From: Jahongir Qurbonov Date: Mon, 14 Oct 2024 14:35:02 +0500 Subject: [PATCH] Upgrade cryptg --- client/pyproject.toml | 2 +- client/src/telethon/_impl/crypto/aes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pyproject.toml b/client/pyproject.toml index c3a2046d..a61df2e3 100644 --- a/client/pyproject.toml +++ b/client/pyproject.toml @@ -27,7 +27,7 @@ dependencies = [ dynamic = ["version"] [project.optional-dependencies] -cryptg = ["cryptg~=0.4"] +cryptg = ["cryptg~=0.5"] dev = [ "mypy~=1.11.2", "ruff~=0.6.8", diff --git a/client/src/telethon/_impl/crypto/aes.py b/client/src/telethon/_impl/crypto/aes.py index da6ea356..1eace6f9 100644 --- a/client/src/telethon/_impl/crypto/aes.py +++ b/client/src/telethon/_impl/crypto/aes.py @@ -1,5 +1,5 @@ try: - import cryptg # type: ignore [import-untyped] + import cryptg def ige_encrypt( plaintext: bytes | bytearray | memoryview, key: bytes, iv: bytes