from typing import Tuple
-CURVE_PARAMS = ... # type: Dict[str, Tuple[bytes, bytes, bytes, bytes, bytes, bytes]]
+DEFAULT_CURVE = ... # type: GOST3410Curve
+CURVES = ... # type: Dict[str, GOST3410Curve]
+MODE2SIZE = ... # type: Dict[int, int]
PublicKey = Tuple[int, int]
def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
-def public_key(curve: GOST3410Curve, private_key: int) -> PublicKey: ...
+def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
-def sign(
- curve: GOST3410Curve,
- private_key: int,
- digest: bytes,
- size: int=...,
-) -> bytes: ...
+def sign(curve: GOST3410Curve, prv: int, digest: bytes, mode: int=...) -> bytes: ...
def verify(
curve: GOST3410Curve,
- pubkeyX: int,
- pubkeyY: int,
+ pub: PublicKey,
digest: bytes,
signature: bytes,
- size: int=...,
+ mode: int=...,
) -> bool: ...
-def prv_unmarshal(private_key: bytes) -> int: ...
+def prv_unmarshal(prv: bytes) -> int: ...
-def pub_marshal(pub: PublicKey, mode: int) -> bytes: ...
+def pub_marshal(pub: PublicKey, mode: int=...) -> bytes: ...
-def pub_unmarshal(pub: bytes, mode: int) -> PublicKey: ...
+def pub_unmarshal(pub: bytes, mode: int=...) -> PublicKey: ...