File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version = " 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 Incomplete , ReadableBuffer
1+ from _typeshed import ReadableBuffer
22from collections .abc import Callable
33from hashlib import _Hash
4+ from typing import ClassVar , Final
45
6+ from cryptography .hazmat .primitives .asymmetric .mlkem import MLKEM768PrivateKey
57from cryptography .hazmat .primitives .asymmetric .x25519 import X25519PrivateKey
68from paramiko .message import Message
79from paramiko .transport import Transport
810
9- c_MSG_KEX_HYBRID_INIT : bytes
10- c_MSG_KEX_HYBRID_REPLY : bytes
11+ c_MSG_KEX_HYBRID_INIT : Final = b" \x1e "
12+ c_MSG_KEX_HYBRID_REPLY : Final = b" \x1f "
1113
1214class KexMLKEM768X25519 :
13- name : str
14- hash_algo : Callable [[ReadableBuffer ], _Hash ]
15+ name : Final = "mlkem768x25519-sha256"
16+ hash_algo : ClassVar [ Callable [[ReadableBuffer ], _Hash ] ]
1517 transport : Transport
16- # cryptography.hazmat.primitives.asymmetric.mlkem.MLKEM768PrivateKey, added in cryptography 48
17- mlkem_key : Incomplete | None
18+ mlkem_key : MLKEM768PrivateKey | None
1819 x25519_key : X25519PrivateKey | None
1920 def __init__ (self , transport : Transport ) -> None : ...
2021 @classmethod
You can’t perform that action at this time.
0 commit comments