16 lines
270 B
Python
16 lines
270 B
Python
|
from typing import Union, Iterable
|
||
|
|
||
|
from Cryptodome.Cipher._mode_ecb import EcbMode
|
||
|
|
||
|
MODE_ECB: int
|
||
|
|
||
|
Buffer = Union[bytes, bytearray, memoryview]
|
||
|
|
||
|
def new(key: Buffer,
|
||
|
mode: int,
|
||
|
salt: Buffer,
|
||
|
cost: int) -> EcbMode: ...
|
||
|
|
||
|
block_size: int
|
||
|
key_size: Iterable[int]
|