File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- version = " 5.0 .*"
1+ version = " 5.1 .*"
22upstream-repository = " https://github.com/paramiko/paramiko"
3- # Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
4- dependencies = [" cryptography>=37 .0.0" ]
3+ # Requires a version of cryptography with cryptography.hazmat.primitives.asymmetric.mlkem
4+ dependencies = [" cryptography>=47 .0.0" ]
55
66[tool .stubtest ]
77# linux and darwin are equivalent
Original file line number Diff line number Diff line change 1+ from _typeshed import ReadableBuffer
2+ from collections .abc import Callable
3+ from hashlib import _Hash
4+ from typing import ClassVar , Final
5+
6+ from cryptography .hazmat .primitives .asymmetric .mlkem import MLKEM768PrivateKey
7+ from cryptography .hazmat .primitives .asymmetric .x25519 import X25519PrivateKey
8+ from paramiko .message import Message
9+ from paramiko .transport import Transport
10+
11+ c_MSG_KEX_HYBRID_INIT : Final = b"\x1e "
12+ c_MSG_KEX_HYBRID_REPLY : Final = b"\x1f "
13+
14+ class KexMLKEM768X25519 :
15+ name : Final = "mlkem768x25519-sha256"
16+ hash_algo : ClassVar [Callable [[ReadableBuffer ], _Hash ]]
17+ transport : Transport
18+ mlkem_key : MLKEM768PrivateKey | None
19+ x25519_key : X25519PrivateKey | None
20+ def __init__ (self , transport : Transport ) -> None : ...
21+ @classmethod
22+ def is_available (cls ) -> bool : ...
23+ def start_kex (self ) -> None : ...
24+ def parse_next (self , ptype : int , m : Message ) -> None : ...
You can’t perform that action at this time.
0 commit comments