]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/x509.pyi
1e0f232c8fca399fcb8fff1b66e6ad496b8fc4bd
[pygost.git] / pygost / stubs / pygost / x509.pyi
1 from typing import Tuple
2
3
4 SIZE_3410_2001 = ...  # type: int
5 SIZE_3410_2012 = ...  # type: int
6
7
8 def keypair_gen(
9     seed: bytes,
10     mode: int=...,
11     curve_params: str=...,
12 ) -> Tuple[bytes, bytes]: ...
13
14
15 def sign_digest(
16     private_key: bytes,
17     digest: bytes,
18     mode: int=...,
19     curve_params: str=...,
20 ) -> bytes: ...
21
22
23 def verify_digest(
24     public_key: bytes,
25     digest: bytes,
26     signature: bytes,
27     mode: int=...,
28     curve_params: str=...,
29 ) -> bool: ...
30
31
32 def sign(
33     private_key: bytes,
34     data: bytes,
35     mode: int=...,
36     curve_params: str=...,
37 ) -> bytes: ...
38
39
40 def verify(
41     public_key: bytes,
42     data: bytes,
43     signature: bytes,
44     mode: int=...,
45     curve_params: str=...,
46 ) -> bool: ...