X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fgost3410.pyi;h=4be8b1d63ecd13653a46cfac7271f56a342483f3;hp=f2071cc4f3040813443b00902fb809ed0b34b7ae;hb=2bb1a163d32e4167e6904ff3c6b4cf64ea7287bb;hpb=312c6b813adbf8a04253e3b1da28e02780c61d07 diff --git a/pygost/stubs/pygost/gost3410.pyi b/pygost/stubs/pygost/gost3410.pyi index f2071cc..4be8b1d 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,7 +42,13 @@ class GOST3410Curve(object): def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ... -def sign(curve: GOST3410Curve, prv: int, digest: bytes, mode: int=...) -> bytes: ... +def sign( + curve: GOST3410Curve, + prv: int, + digest: bytes, + rand: bytes=None, + mode: int=..., +) -> bytes: ... def verify(