Skip to content

Commit 350a961

Browse files
[paramiko] Update to 5.1.* (#16640)
1 parent e3758f0 commit 350a961

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

‎stubs/paramiko/METADATA.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
version = "5.0.*"
1+
version = "5.1.*"
22
upstream-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
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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: ...

0 commit comments

Comments
 (0)