1 from typing import Dict
2 from typing import Tuple
5 DEFAULT_CURVE = ... # type: str
6 CURVE_PARAMS = ... # type: Dict[str, Tuple[bytes, bytes, bytes, bytes, bytes, bytes]]
7 PublicKey = Tuple[int, int]
10 class GOST3410Curve(object):
19 self, p: bytes, q: bytes, a: bytes, b: bytes, x: bytes, y: bytes
22 def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
25 def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
28 def sign(curve: GOST3410Curve, prv: int, digest: bytes, mode: int=...) -> bytes: ...
40 def prv_unmarshal(prv: bytes) -> int: ...
43 def pub_marshal(pub: PublicKey, mode: int=...) -> bytes: ...
46 def pub_unmarshal(pub: bytes, mode: int=...) -> PublicKey: ...