massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / kex_gex.pyi
1 import sys
2 from _typeshed import ReadableBuffer
3 from typing import Callable
4
5 from paramiko.message import Message
6 from paramiko.transport import Transport
7
8 if sys.version_info >= (3, 0):
9     from hashlib import _Hash
10 else:
11     from hashlib import _hash as _Hash
12
13 c_MSG_KEXDH_GEX_REQUEST_OLD: bytes
14 c_MSG_KEXDH_GEX_GROUP: bytes
15 c_MSG_KEXDH_GEX_INIT: bytes
16 c_MSG_KEXDH_GEX_REPLY: bytes
17 c_MSG_KEXDH_GEX_REQUEST: bytes
18
19 class KexGex:
20     name: str
21     min_bits: int
22     max_bits: int
23     preferred_bits: int
24     hash_algo: Callable[[ReadableBuffer], _Hash] = ...
25     transport: Transport
26     p: int | None
27     q: int | None
28     g: int | None
29     x: int | None
30     e: int | None
31     f: int | None
32     old_style: bool
33     def __init__(self, transport: Transport) -> None: ...
34     def start_kex(self, _test_old_style: bool = ...) -> None: ...
35     def parse_next(self, ptype: int, m: Message) -> None: ...
36
37 class KexGexSHA256(KexGex):
38     name: str
39     hash_algo: Callable[[ReadableBuffer], _Hash] = ...