1 from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm
2 from cryptography.hazmat.primitives.ciphers.modes import ModeWithNonce
4 class AES(BlockCipherAlgorithm, CipherAlgorithm):
5 def __init__(self, key: bytes) -> None: ...
8 key_sizes: frozenset[int] = ...
10 def key_size(self) -> int: ...
12 class ARC4(CipherAlgorithm):
13 def __init__(self, key: bytes) -> None: ...
15 def key_size(self) -> int: ...
17 key_sizes: frozenset[int] = ...
19 class Blowfish(BlockCipherAlgorithm, CipherAlgorithm):
20 def __init__(self, key: bytes) -> None: ...
22 def key_size(self) -> int: ...
25 key_sizes: frozenset[int] = ...
27 class Camellia(BlockCipherAlgorithm, CipherAlgorithm):
28 def __init__(self, key: bytes) -> None: ...
30 def key_size(self) -> int: ...
33 key_sizes: frozenset[int] = ...
35 class CAST5(BlockCipherAlgorithm, CipherAlgorithm):
36 def __init__(self, key: bytes) -> None: ...
38 def key_size(self) -> int: ...
41 key_sizes: frozenset[int] = ...
43 class ChaCha20(CipherAlgorithm, ModeWithNonce):
44 def __init__(self, key: bytes, nonce: bytes) -> None: ...
46 def key_size(self) -> int: ...
48 key_sizes: frozenset[int] = ...
50 def nonce(self) -> bytes: ...
52 class IDEA(CipherAlgorithm):
53 def __init__(self, key: bytes) -> None: ...
55 def key_size(self) -> int: ...
58 key_sizes: frozenset[int] = ...
60 class SEED(BlockCipherAlgorithm, CipherAlgorithm):
61 def __init__(self, key: bytes) -> None: ...
63 def key_size(self) -> int: ...
66 key_sizes: frozenset[int] = ...
68 class TripleDES(BlockCipherAlgorithm, CipherAlgorithm):
69 def __init__(self, key: bytes) -> None: ...
71 def key_size(self) -> int: ...
74 key_sizes: frozenset[int] = ...