1 from typing import Dict
2 from typing import Tuple
5 DEFAULT_CURVE = ... # type: GOST3410Curve
6 CURVES = ... # type: Dict[str, GOST3410Curve]
7 MODE2SIZE = ... # type: Dict[int, int]
8 PublicKey = Tuple[int, int]
11 class GOST3410Curve(object):
20 self, p: bytes, q: bytes, a: bytes, b: bytes, x: bytes, y: bytes
23 def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
26 def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
29 def sign(curve: GOST3410Curve, prv: int, digest: bytes, mode: int=...) -> bytes: ...
41 def prv_unmarshal(prv: bytes) -> int: ...
44 def pub_marshal(pub: PublicKey, mode: int=...) -> bytes: ...
47 def pub_unmarshal(pub: bytes, mode: int=...) -> PublicKey: ...