mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add stubs for TgCrypto (#12469)
This commit is contained in:
7
stubs/TgCrypto/@tests/stubtest_allowlist.txt
Normal file
7
stubs/TgCrypto/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# stubtest doesn't recognize these function as taking only positional-only arguments.
|
||||
tgcrypto.cbc256_decrypt
|
||||
tgcrypto.cbc256_encrypt
|
||||
tgcrypto.ctr256_decrypt
|
||||
tgcrypto.ctr256_encrypt
|
||||
tgcrypto.ige256_decrypt
|
||||
tgcrypto.ige256_encrypt
|
||||
2
stubs/TgCrypto/METADATA.toml
Normal file
2
stubs/TgCrypto/METADATA.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
version = "1.2.*"
|
||||
upstream_repository = "https://github.com/pyrogram/tgcrypto"
|
||||
8
stubs/TgCrypto/tgcrypto/__init__.pyi
Normal file
8
stubs/TgCrypto/tgcrypto/__init__.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing_extensions import Buffer
|
||||
|
||||
def ige256_encrypt(data: Buffer, key: Buffer, iv: Buffer, /) -> bytes: ...
|
||||
def ige256_decrypt(data: Buffer, key: Buffer, iv: Buffer, /) -> bytes: ...
|
||||
def ctr256_encrypt(data: Buffer, key: Buffer, iv: Buffer, state: Buffer, /) -> bytes: ...
|
||||
def ctr256_decrypt(data: Buffer, key: Buffer, iv: Buffer, state: Buffer, /) -> bytes: ...
|
||||
def cbc256_encrypt(data: Buffer, key: Buffer, iv: Buffer, /) -> bytes: ...
|
||||
def cbc256_decrypt(data: Buffer, key: Buffer, iv: Buffer, /) -> bytes: ...
|
||||
Reference in New Issue
Block a user