X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fgost3410.pyi;h=66494455102d91c4fad69c1f773d451f72ef29a3;hp=4be8b1d63ecd13653a46cfac7271f56a342483f3;hb=82af8726ef5d5e2752089a45750e56c9910398c7;hpb=744398c0b6a3ab223d91cbf56a72932a7c87381d diff --git a/pygost/stubs/pygost/gost3410.pyi b/pygost/stubs/pygost/gost3410.pyi index 4be8b1d..6649445 100644 --- a/pygost/stubs/pygost/gost3410.pyi +++ b/pygost/stubs/pygost/gost3410.pyi @@ -42,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]: ...