2 from _typeshed import ReadableBuffer
3 from typing import Callable
5 from paramiko.message import Message
6 from paramiko.transport import Transport
8 if sys.version_info >= (3, 0):
9 from hashlib import _Hash
11 from hashlib import _hash as _Hash
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
24 hash_algo: Callable[[ReadableBuffer], _Hash] = ...
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: ...
37 class KexGexSHA256(KexGex):
39 hash_algo: Callable[[ReadableBuffer], _Hash] = ...