CURVE_PARAMS = ... # type: Dict[str, Tuple[bytes, bytes, bytes, bytes, bytes, bytes]]
+PublicKey = Tuple[int, int]
class GOST3410Curve(object):
def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
-PublicKey = Tuple[int, int]
-
-
def public_key(curve: GOST3410Curve, private_key: int) -> PublicKey: ...
-def kek(
- curve: GOST3410Curve,
- private_key: int,
- ukm: bytes,
- pubkey: PublicKey,
-) -> bytes: ...
-
-
def sign(
curve: GOST3410Curve,
private_key: int,
signature: bytes,
size: int=...,
) -> bool: ...
+
+
+def prv_unmarshal(private_key: bytes) -> int: ...
+
+
+def pub_marshal(pub: PublicKey, mode: int) -> bytes: ...
+
+
+def pub_unmarshal(pub: bytes, mode: int) -> PublicKey: ...