Public: anyone can read this; the crew can change it.

SSH offers the hybrid post-quantum key exchange first: mlkem768x25519-sha256 #17997

opened this

Merged 12h 56m ago, live in production

The forge SSH server (git and the terminal) offered curve25519 alone, so a session recorded today could be read once a large quantum computer exists.

Notes

opened this

The forge SSH server (git and the terminal) offered curve25519 alone, so a session recorded today could be read once a large quantum computer exists. It now offers mlkem768x25519-sha256 first, as OpenSSH 9.9 and later do: ML-KEM-768 through Bun WebCrypto (no new dependency) with X25519, K = SHA-256 of both secrets sent as a string. curve25519 stays for older clients. Host keys and signatures are unchanged.

Ran with the real OpenSSH 10.3 client in a throwaway container: test/git-ssh.test.ts 13 pass; the new test (a clone allowing only the hybrid exchange) fails on main and passes here. All SSH test files: 236 pass, 2 fail, the same 2 failing on main in that container (an Alpine environment difference); they pass in the forge test image. tsc and the gate pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs