massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / cryptography / cryptography / hazmat / primitives / ciphers / algorithms.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/cryptography/cryptography/hazmat/primitives/ciphers/algorithms.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/cryptography/cryptography/hazmat/primitives/ciphers/algorithms.pyi
new file mode 100644 (file)
index 0000000..466c70b
--- /dev/null
@@ -0,0 +1,74 @@
+from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm
+from cryptography.hazmat.primitives.ciphers.modes import ModeWithNonce
+
+class AES(BlockCipherAlgorithm, CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+    @property
+    def key_size(self) -> int: ...
+
+class ARC4(CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+
+class Blowfish(BlockCipherAlgorithm, CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+
+class Camellia(BlockCipherAlgorithm, CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+
+class CAST5(BlockCipherAlgorithm, CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+
+class ChaCha20(CipherAlgorithm, ModeWithNonce):
+    def __init__(self, key: bytes, nonce: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+    @property
+    def nonce(self) -> bytes: ...
+
+class IDEA(CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+
+class SEED(BlockCipherAlgorithm, CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...
+
+class TripleDES(BlockCipherAlgorithm, CipherAlgorithm):
+    def __init__(self, key: bytes) -> None: ...
+    @property
+    def key_size(self) -> int: ...
+    block_size: int = ...
+    name: str = ...
+    key_sizes: frozenset[int] = ...