Skip to content

Commit 4866176

Browse files
[paramiko] Update to 5.1.*
1 parent 29f9217 commit 4866176

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

‎stubs/paramiko/METADATA.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "5.0.*"
1+
version = "5.1.*"
22
upstream-repository = "https://github.com/paramiko/paramiko"
33
# Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
44
dependencies = ["cryptography>=37.0.0"]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from _typeshed import Incomplete, ReadableBuffer
2+
from collections.abc import Callable
3+
from hashlib import _Hash
4+
5+
from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey
6+
from paramiko.message import Message
7+
from paramiko.transport import Transport
8+
9+
c_MSG_KEX_HYBRID_INIT: bytes
10+
c_MSG_KEX_HYBRID_REPLY: bytes
11+
12+
class KexMLKEM768X25519:
13+
name: str
14+
hash_algo: Callable[[ReadableBuffer], _Hash]
15+
transport: Transport
16+
# cryptography.hazmat.primitives.asymmetric.mlkem.MLKEM768PrivateKey, added in cryptography 48
17+
mlkem_key: Incomplete | None
18+
x25519_key: X25519PrivateKey | None
19+
def __init__(self, transport: Transport) -> None: ...
20+
@classmethod
21+
def is_available(cls) -> bool: ...
22+
def start_kex(self) -> None: ...
23+
def parse_next(self, ptype: int, m: Message) -> None: ...

0 commit comments

Comments
 (0)