Repository navigation
Description
Part of the FIPS 140-3 umbrella (#6224).
Context
The supervisor exposes an SSH server and the gateway runs an SSH client, both on russh. Around it, ssh-key parses the key formats, ssh-cipher provides the transport ciphers and MACs, and the post-quantum hybrid KEX (mlkem768x25519-sha256) goes through ml-kem. All of it runs on RustCrypto implementations today.
Problem
The SSH stack is where the crypto sits deepest: cipher modes, KDFs, key formats and signature schemes are hardwired to RustCrypto crates throughout russh and its satellite crates. There is no feature-level switch, and the depth of the change makes a short-term upstream merge unrealistic.
Proposed approach
Maintained forks carrying an optional OpenSSL backend, pinned through [patch.crates-io] in the OpenShell workspace:
- russh (akram/russh, branch
feat/optional-openssl-gcm-backend): AES-GCM through EVP, the SSH KDF throughEVP_KDF-SSHKDF, RSA PKCS#1 key parsing through the module, key generation seeded from the module's RBG, and the finite-field DH groups dropped from that backend since they have no module-backed implementation. - ssh-key / ssh-cipher (akram/rust-ssh-key, branch
feat/openssl-pkcs8-and-keygen): PKCS#8/PBES2 key handling through the module, SHA-2 gating, and explicit refusal of the legacy formats that cannot be routed through it (for example bcrypt-protected PPK v2 keys) instead of a silent fallback to a non-module implementation. - ml-kem (akram/KEMs, branch
feat/openssl-sha3-shake): SHA-3/SHAKE for the hybrid KEX through the module.
On the OpenShell side, the SSH algorithm negotiation is pinned to explicit Preferred lists, identical on the server and client, restricted to the algorithms available on both backends with a defensible FIPS posture. A few documented deviations remain and are tracked separately.
Current state
All three forks are public and validated: full test matrices on both backends, plus an end-to-end gateway build in FIPS mode linking the system libcrypto. The OpenShell wiring lives on the feasibility branch (feat/openssl-fips-cargo-wiring). These forks are intended to be maintained rather than upstreamed; the pin set is the deliverable.
Activity