X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fgost3410.pyi;h=66494455102d91c4fad69c1f773d451f72ef29a3;hb=82af8726ef5d5e2752089a45750e56c9910398c7;hp=afab2659e665c19d430c88b6869674f5f2e8a97c;hpb=39eec912f1876d3437889c5ef9187687460ebda8;p=pygost.git diff --git a/pygost/stubs/pygost/gost3410.pyi b/pygost/stubs/pygost/gost3410.pyi index afab265..6649445 100644 --- a/pygost/stubs/pygost/gost3410.pyi +++ b/pygost/stubs/pygost/gost3410.pyi @@ -15,6 +15,7 @@ class GOST3410Curve(object): b = ... # type: int x = ... # type: int y = ... # type: int + cofactor = ... # type: int e = ... # type: int d = ... # type: int @@ -26,6 +27,7 @@ class GOST3410Curve(object): b: int, x: int, y: int, + cofactor: int = 1, e: int = None, d: int = None, ) -> None: ... @@ -40,31 +42,19 @@ class GOST3410Curve(object): def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ... -def sign( - curve: GOST3410Curve, - prv: int, - digest: bytes, - rand: bytes=None, - mode: int=..., -) -> bytes: ... +def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes=None) -> bytes: ... -def verify( - curve: GOST3410Curve, - pub: PublicKey, - digest: bytes, - signature: bytes, - mode: int=..., -) -> bool: ... +def verify(curve: GOST3410Curve, pub: PublicKey, digest: bytes, signature: bytes) -> bool: ... def prv_unmarshal(prv: bytes) -> int: ... -def pub_marshal(pub: PublicKey, mode: int=...) -> bytes: ... +def pub_marshal(pub: PublicKey) -> bytes: ... -def pub_unmarshal(pub: bytes, mode: int=...) -> PublicKey: ... +def pub_unmarshal(pub: bytes) -> PublicKey: ... def uv2xy(curve: GOST3410Curve, u: int, v: int) -> Tuple[int, int]: ...