Debian Codegraph @

lib/Crypto/Cipher/_mode_ctr.pyi

raw symbols SCIP
1 from typing import Union, overload
2
3 from Crypto.Util._raw_api import SmartPointer
4
5 Buffer = Union[bytes, bytearray, memoryview]
6
7 __all__ = ['CtrMode']
8
9 class CtrMode(object):
10 block_size: int
11 nonce: bytes
12
13 def __init__(self,
14 block_cipher: SmartPointer,
15 initial_counter_block: Buffer,
16 prefix_len: int,
17 counter_len: int,
18 little_endian: bool) -> None: ...
19 @overload
20 def encrypt(self, plaintext: Buffer) -> bytes: ...
21 @overload
22 def encrypt(self, plaintext: Buffer, output: Union[bytearray, memoryview]) -> None: ...
23 @overload
24 def decrypt(self, plaintext: Buffer) -> bytes: ...
25 @overload
26 def decrypt(self, plaintext: Buffer, output: Union[bytearray, memoryview]) -> None: ...
27