mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Don't use kwargs
This commit is contained in:
parent
6fd8b582b2
commit
6c20661686
@ -53,7 +53,7 @@ class AES:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def ctr_decrypt(data: bytes, key: bytes, iv: bytes, offset: int) -> bytes:
|
def ctr_decrypt(data: bytes, key: bytes, iv: bytes, offset: int) -> bytes:
|
||||||
replace = int.to_bytes(offset // 16, byteorder="big", length=4)
|
replace = int.to_bytes(offset // 16, 4, "big")
|
||||||
iv = iv[:-4] + replace
|
iv = iv[:-4] + replace
|
||||||
|
|
||||||
if is_fast:
|
if is_fast:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user