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
1 from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm
2 from cryptography.hazmat.primitives.ciphers.modes import ModeWithNonce
3
4 class AES(BlockCipherAlgorithm, CipherAlgorithm):
5     def __init__(self, key: bytes) -> None: ...
6     block_size: int = ...
7     name: str = ...
8     key_sizes: frozenset[int] = ...
9     @property
10     def key_size(self) -> int: ...
11
12 class ARC4(CipherAlgorithm):
13     def __init__(self, key: bytes) -> None: ...
14     @property
15     def key_size(self) -> int: ...
16     name: str = ...
17     key_sizes: frozenset[int] = ...
18
19 class Blowfish(BlockCipherAlgorithm, CipherAlgorithm):
20     def __init__(self, key: bytes) -> None: ...
21     @property
22     def key_size(self) -> int: ...
23     block_size: int = ...
24     name: str = ...
25     key_sizes: frozenset[int] = ...
26
27 class Camellia(BlockCipherAlgorithm, CipherAlgorithm):
28     def __init__(self, key: bytes) -> None: ...
29     @property
30     def key_size(self) -> int: ...
31     block_size: int = ...
32     name: str = ...
33     key_sizes: frozenset[int] = ...
34
35 class CAST5(BlockCipherAlgorithm, CipherAlgorithm):
36     def __init__(self, key: bytes) -> None: ...
37     @property
38     def key_size(self) -> int: ...
39     block_size: int = ...
40     name: str = ...
41     key_sizes: frozenset[int] = ...
42
43 class ChaCha20(CipherAlgorithm, ModeWithNonce):
44     def __init__(self, key: bytes, nonce: bytes) -> None: ...
45     @property
46     def key_size(self) -> int: ...
47     name: str = ...
48     key_sizes: frozenset[int] = ...
49     @property
50     def nonce(self) -> bytes: ...
51
52 class IDEA(CipherAlgorithm):
53     def __init__(self, key: bytes) -> None: ...
54     @property
55     def key_size(self) -> int: ...
56     block_size: int = ...
57     name: str = ...
58     key_sizes: frozenset[int] = ...
59
60 class SEED(BlockCipherAlgorithm, CipherAlgorithm):
61     def __init__(self, key: bytes) -> None: ...
62     @property
63     def key_size(self) -> int: ...
64     block_size: int = ...
65     name: str = ...
66     key_sizes: frozenset[int] = ...
67
68 class TripleDES(BlockCipherAlgorithm, CipherAlgorithm):
69     def __init__(self, key: bytes) -> None: ...
70     @property
71     def key_size(self) -> int: ...
72     block_size: int = ...
73     name: str = ...
74     key_sizes: frozenset[int] = ...