Skip to content

Add ML-KEM hybrid post-quantum key exchange support - #2668

Merged
bitprophet merged 1 commit into
paramiko:mainfrom
alex:mlkem-kex
Aug 29, 2026
Merged

bitprophet merged 1 commit into
paramiko:mainfrom
alex:mlkem-kex

Conversation

@alex

@alex alex commented Aug 10, 2026

Copy link
Copy Markdown
Member

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.

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.
@bitprophet
bitprophet merged commit e854862 into paramiko:main Aug 29, 2026
1 check passed
@alex
alex deleted the mlkem-kex branch August 29, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants