]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/utils.pyi
aff49bcabff9fa2d85e0b5e2ec8d0a03bc01d8a9
[pygost.git] / pygost / stubs / pygost / utils.pyi
1 from typing import AnyStr
2 from typing import Optional
3
4
5 def strxor(a: bytes, b: bytes) -> bytes: ...
6
7
8 def hexdec(data: AnyStr) -> bytes: ...
9
10
11 def hexenc(data: bytes) -> str: ...
12
13
14 def bytes2long(raw: bytes) -> int: ...
15
16
17 def long2bytes(n: int, size: int = ...) -> bytes: ...
18
19
20 def modinvert(a: int, n: int) -> int: ...