X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fgost3410.pyi;h=8f0dcb8e881d50089eb2029c7bdad2f62510f79f;hb=2e336566fbe3a603b5565142f5112880035be7f1;hp=ee0e9b6de227720e3dbd784e47bf726ef3aac1b0;hpb=f3a3246bc9da027e0527b89204e1b95ed52af5c6;p=pygost.git diff --git a/pygost/stubs/pygost/gost3410.pyi b/pygost/stubs/pygost/gost3410.pyi index ee0e9b6..8f0dcb8 100644 --- a/pygost/stubs/pygost/gost3410.pyi +++ b/pygost/stubs/pygost/gost3410.pyi @@ -17,6 +17,7 @@ class GOST3410Curve(object): cofactor = ... # type: int e = ... # type: int d = ... # type: int + name = ... # type: str def __init__( self, @@ -29,11 +30,12 @@ class GOST3410Curve(object): cofactor: int = 1, e: int = None, d: int = None, + name: str = None, ) -> None: ... def pos(self, v: int) -> int: ... - def exp(self, degree: int, x: int=..., y: int=...) -> int: ... + def exp(self, degree: int, x: int = ..., y: int = ...) -> int: ... def st(self) -> Tuple[int, int]: ... @@ -46,7 +48,7 @@ class GOST3410Curve(object): def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ... -def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes=None) -> bytes: ... +def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes = None) -> bytes: ... def verify(curve: GOST3410Curve, pub: PublicKey, digest: bytes, signature: bytes) -> bool: ... @@ -55,6 +57,9 @@ def verify(curve: GOST3410Curve, pub: PublicKey, digest: bytes, signature: bytes def prv_unmarshal(prv: bytes) -> int: ... +def prv_marshal(curve: GOST3410Curve, prv: int) -> bytes: ... + + def pub_marshal(pub: PublicKey) -> bytes: ...