key: bytes,
data: bytes,
action: Callable[[str, bytes, Words], Words],
- sbox: str=...,
+ sbox: str = ...,
) -> bytes: ...
def ecb_encrypt(
key: bytes,
data: bytes,
- sbox: str=...,
+ sbox: str = ...,
) -> bytes: ...
def ecb_decrypt(
key: bytes,
data: bytes,
- sbox: str=...,
+ sbox: str = ...,
) -> bytes: ...
def cbc_encrypt(
key: bytes,
data: bytes,
- iv: bytes=...,
- pad: bool=...,
- sbox: str=...,
- mesh: bool=...,
+ iv: bytes = ...,
+ pad: bool = ...,
+ sbox: str = ...,
+ mesh: bool = ...,
) -> bytes: ...
def cbc_decrypt(
key: bytes,
data: bytes,
- pad: bool=...,
- sbox: str=...,
- mesh: bool=...,
+ pad: bool = ...,
+ sbox: str = ...,
+ mesh: bool = ...,
) -> bytes: ...
def cnt(
key: bytes,
data: bytes,
- iv: bytes=...,
- sbox: str=...,
+ iv: bytes = ...,
+ sbox: str = ...,
) -> bytes: ...
def cfb_encrypt(
key: bytes,
data: bytes,
- iv: bytes=...,
- sbox: str=...,
- mesh: bool=...,
+ iv: bytes = ...,
+ sbox: str = ...,
+ mesh: bool = ...,
) -> bytes: ...
def cfb_decrypt(
key: bytes,
data: bytes,
- iv: bytes=...,
- sbox: str=...,
- mesh: bool=...,
+ iv: bytes = ...,
+ sbox: str = ...,
+ mesh: bool = ...,
) -> bytes: ...
def __init__(
self,
key: bytes,
- data: bytes=...,
- iv: bytes=...,
- sbox: str=...,
+ data: bytes = ...,
+ iv: bytes = ...,
+ sbox: str = ...,
) -> None: ...
@property
def hexdigest(self) -> str: ...
-def new(key: bytes, data: bytes=..., iv: bytes=..., sbox: str=...) -> MAC: ...
+def new(key: bytes, data: bytes = ..., iv: bytes = ..., sbox: str = ...) -> MAC: ...
def pos(self, v: int) -> int: ...
- def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
+ def exp(self, degree: int, x: int = ..., y: int = ...) -> int: ...
def st(self) -> Tuple[int, int]: ...
def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
-def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes=None) -> bytes: ...
+def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes = None) -> bytes: ...
def verify(curve: GOST3410Curve, pub: PublicKey, digest: bytes, signature: bytes) -> bool: ...
def kek_34102001(curve: GOST3410Curve, prv: int, pub: PublicKey, ukm: int) -> bytes: ...
-def kek_34102012256(curve: GOST3410Curve, prv: int, pub: PublicKey, ukm: int=...) -> bytes: ...
+def kek_34102012256(curve: GOST3410Curve, prv: int, pub: PublicKey, ukm: int = ...) -> bytes: ...
-def kek_34102012512(curve: GOST3410Curve, prv: int, pub: PublicKey, ukm: int=...) -> bytes: ...
+def kek_34102012512(curve: GOST3410Curve, prv: int, pub: PublicKey, ukm: int = ...) -> bytes: ...
class GOST34112012(PEP247):
block_size = ... # type: int
- def __init__(self, data: bytes=..., digest_size: int=...) -> None: ...
+ def __init__(self, data: bytes = ..., digest_size: int = ...) -> None: ...
@property
def digest_size(self) -> int: ...
class GOST34112012256(PEP247):
block_size = ... # type: int
- def __init__(self, data: bytes=...) -> None: ...
+ def __init__(self, data: bytes = ...) -> None: ...
@property
def digest_size(self) -> int: ...
def hexdigest(self) -> str: ...
-def new(data: bytes=...) -> GOST34112012256: ...
+def new(data: bytes = ...) -> GOST34112012256: ...
class GOST34112012512(PEP247):
block_size = ... # type: int
- def __init__(self, data: bytes=...) -> None: ...
+ def __init__(self, data: bytes = ...) -> None: ...
@property
def digest_size(self) -> int: ...
def hexdigest(self) -> str: ...
-def new(data: bytes=...) -> GOST34112012512: ...
+def new(data: bytes = ...) -> GOST34112012512: ...
+
def pbkdf2(password: bytes, salt: bytes, iterations: int, dklen: int) -> bytes: ...
sbox = ... # type: str
block_size = ... # type: int
- def __init__(self, data: bytes=..., sbox: str=...) -> None: ...
+ def __init__(self, data: bytes = ..., sbox: str = ...) -> None: ...
@property
def digest_size(self) -> int: ...
def hexdigest(self) -> str: ...
-def new(data: bytes=..., sbox: str=...) -> GOST341194: ...
+def new(data: bytes = ..., sbox: str = ...) -> GOST341194: ...
def pbkdf2(password: bytes, salt: bytes, iterations: int, dklen: int) -> bytes: ...
label: bytes,
seed: bytes,
keys: int,
- i_len=1,
+ i_len: int = 1,
) -> Sequence[bytes]: ...
def bytes2long(raw: bytes) -> int: ...
-def long2bytes(n: int, size: int=...) -> bytes: ...
+def long2bytes(n: int, size: int = ...) -> bytes: ...
def modinvert(a: int, n: int) -> int: ...