Skip to content

Commit a5979a3

Browse files
committed
Update tgcrypto function names
1 parent 9f4d785 commit a5979a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyrogram/crypto/aes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ class AES:
3030
# TODO: Use new tgcrypto function names
3131
@classmethod
3232
def ige256_encrypt(cls, data: bytes, key: bytes, iv: bytes) -> bytes:
33-
return tgcrypto.ige_encrypt(data, key, iv)
33+
return tgcrypto.ige256_encrypt(data, key, iv)
3434

3535
@classmethod
3636
def ige256_decrypt(cls, data: bytes, key: bytes, iv: bytes) -> bytes:
37-
return tgcrypto.ige_decrypt(data, key, iv)
37+
return tgcrypto.ige256_decrypt(data, key, iv)
3838

3939
@staticmethod
4040
def ctr256_encrypt(data: bytes, key: bytes, iv: bytearray, state: bytearray = None) -> bytes:
41-
return tgcrypto.ctr_encrypt(data, key, iv, state or bytearray(1))
41+
return tgcrypto.ctr256_encrypt(data, key, iv, state or bytearray(1))
4242

4343
@staticmethod
4444
def ctr256_decrypt(data: bytes, key: bytes, iv: bytearray, state: bytearray = None) -> bytes:
45-
return tgcrypto.ctr_decrypt(data, key, iv, state or bytearray(1))
45+
return tgcrypto.ctr256_decrypt(data, key, iv, state or bytearray(1))
4646

4747
@staticmethod
4848
def xor(a: bytes, b: bytes) -> bytes:

0 commit comments

Comments
 (0)