From fe733aad9738e4524eb5307f91706c2ebfe23ff9 Mon Sep 17 00:00:00 2001 From: Jahongir Qurbonov <109198731+Jahongir-Qurbonov@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:32:38 +0500 Subject: [PATCH] Upgrade cryptg (#4486) --- 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