Repository navigation
Conversation
3ade38a to
d03f898
Compare
|
Not a code review (this definitely isn't my area of expertise!). But - applied this patch to a currently installed paramiko 5.0.0 (Python 3.13, macOS 26) - and does work against a server configured for post-quantum only KexAlgorithms. |
|
Nice work here, the K-as-string vs mpint handling and reusing the small-order X25519 check are the kind of details that are easy to get wrong in a hybrid kex port. Following this because I'm evaluating PQC SSH options for some Python tooling built on paramiko. Any idea what's blocking review, or just waiting on maintainer time? Also curious if |
|
a) This is just waiting for maintainer review bandwidth. |
Implements `mlkem768x25519-sha256` from draft-ietf-sshm-mlkem-hybrid-kex, combining ML-KEM-768 (FIPS 203) with X25519. The shared secret is SHA-256(K_PQ || K_CL); per the draft, K is encoded as an SSH string (rather than an mpint) in both the exchange hash and the symmetric key derivation. ML-KEM is provided by pyca/cryptography (>=48), which itself requires OpenSSL 3.5+, AWS-LC, or BoringSSL. The kex method is auto-registered when ML-KEM is importable and is preferred over the existing classical methods. Verified interoperable with OpenSSH 10.0 in both directions.
d03f898 to
e854862
Compare
|
(Re-created as #2668) |
Implements
mlkem768x25519-sha256fromdraft-ietf-sshm-mlkem-hybrid-kex, combining ML-KEM-768 (FIPS 203) with X25519. The shared secret is SHA-256(K_PQ || K_CL); per the draft, K is encoded as an SSH string (rather than an mpint) in both the exchange hash and the symmetric key derivation.
ML-KEM is provided by pyca/cryptography (>=48), which itself requires OpenSSL 3.5+, AWS-LC, or BoringSSL. The kex method is auto-registered when ML-KEM is importable and is preferred over the existing classical methods. Verified interoperable with OpenSSH 10.0 in both directions.