1 from typing import Dict
2 from typing import Tuple
5 CURVE_PARAMS = ... # type: Dict[str, Tuple[bytes, bytes, bytes, bytes, bytes, bytes]]
6 PublicKey = Tuple[int, int]
9 class GOST3410Curve(object):
18 self, p: bytes, q: bytes, a: bytes, b: bytes, x: bytes, y: bytes
21 def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
24 def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
27 def sign(curve: GOST3410Curve, prv: int, digest: bytes, size: int=...) -> bytes: ...
39 def prv_unmarshal(prv: bytes) -> int: ...
42 def pub_marshal(pub: PublicKey, mode: int) -> bytes: ...
45 def pub_unmarshal(pub: bytes, mode: int) -> PublicKey: ...