OpenSSH Post-Quantum Cryptography

(openssh.org)

271 points | by pmontra 1 day ago

16 comments

  • djhworld 21 hours ago
    The version of openSSH on macOS 27 is OpenSSH_10.5p1

    Which lets you generate a "mldsa44-ed25519" key (ssh-keygen -t mldsa44-ed25519) but I can't seem to get it to work with my servers running openSSH 10.6

    I installed openSSH (10.6) and regenerated my key using the same command and everything just worked

    so not really sure what's going on there, other than hoping Apple updates to 10.6 some day

    • throw0101d 19 hours ago
      > Which lets you generate a "mldsa44-ed25519" key (ssh-keygen -t mldsa44-ed25519) but I can't seem to get it to work with my servers running openSSH 10.6

      From the 10.6 Release Notes (§New features):

           * All: enable hybrid post-quantum ssh-mldsa44-ed25519 signature
             algorithm. Note that this no longer uses the "@openssh.com"
             vendor extension suffix that the previous experimental
             implementation used. Keys generated with the previous experimental
             support must be regenerated and/or removed.
      
      * https://www.openssh.org/txt/release-10.6

      "mldsa44-ed25519" was added in a commit on 14 Jun 2026, but with "@openssh.com" initially, now removed. But given the recent NSA recommendation,[1] ML-DSA-44 is too small for 'important' US government deployments: they mandate ML-DSA-87, which corresponds to non-PQ algos Ed448, RSA ≥3072, P-384 or P-521 (see RFC 10073 §6).

      [1] https://news.ycombinator.com/item?id=50730738

      There is a draft for "ssh-mldsa87-p384" by Damien Miller (of portable OpenSSH):

      * https://datatracker.ietf.org/doc/draft-ietf-sshm-composite-s...

      There's also an NSA-'sponsored' informational draft on what needs to be set for CNSA 2.0 compliance:

      * https://datatracker.ietf.org/doc/draft-becker-cnsa2-ssh-prof...

      • rao-v 14 hours ago
        This is the clearest summary of where we stand in terms of “good” post quantum auth schemes in OpenSSH I’ve seen so far. Thank you!
    • zamadatix 20 hours ago
      • alwillis 19 hours ago
        > other than hoping Apple updates to 10.6 some day

        I'm running the latest beta of macOS 27.3; it has SSH 10.6p1

  • wicket 22 hours ago
  • dapperdrake 22 hours ago
    • this_user 22 hours ago
      I mean, there is a chance that it turns out that RSA is actually more secure than ECC for practical purposes. Maybe the real security lies in using obscure schemes that nobody will even bother attacking.
      • _alternator_ 21 hours ago
        > Maybe the real security lies in using obscure schemes that nobody will even bother attacking.

        Security through obscurity was always bad practice, but the use of models for cryptanalysis makes it even worse. We can now automate cryptanalysis at scale.

      • marcosdumay 22 hours ago
        We do know that RSA resists quantum computers better than ECC because the keys are larger. The extra bits we use because it has been weakened make a difference for unrelated attacks.
        • ky3 18 hours ago
          > RSA resists quantum computers better than ECC because the keys are larger

          A longer key doesn't necessarily translate into greater security. 3DES has 168 bits of entropy (in full triple-key mode) but is less secure than AES-128. Cipher design matters more than key length.

          • amluto 15 hours ago
            Not for Shor’s algorithm. Shor’s algorithm factors and finds discrete logs with approximately equal ease, and switching between integers-mod—p and an elliptic curve makes approximately no difference.
            • ky3 14 hours ago
              0. You know that there are more asymmetric primitives than just discrete logs and factoring, yes? Shor is not a silver bullet for all crypto.

              1. While it's true that polynomial scaling means users can no longer outrun Shor by doubling or tripling key lengths, wording it as "factors and finds discrete logs with approximately equal ease" (emphasis mine) is misleading.

              E.g. summing a linked list of numbers vs an array are both big theta of n, but no-one would call them "approximately equal" because their actual runtimes differ by an order of magnitude on modern cpus thanks to cache coherence (and that's not even considering SIMD).

              • amluto 13 hours ago
                Shor’s algorithm solves discrete logs and factors with complexity approximately equal to the complexity of exponentiation in the group in question. There’s some space overhead (maybe a factor of 3). There’s some time overhead (maybe a factor of 5? 10?). It’s been a while since I drew this all out on a blackboard (I studied it in grad school).

                Read that again, though. We’re not talking about giant constant factors. There are no weird quasipolynomial complexities. It doesn’t even particularly matter whether the group is an elliptic curve. The quantum algorithm literally calculates (using the same circuit a classical computer would, except coherently) an exponentiation, stores some extra state (adding a very small space overhead), does a magical quantum thing (the QFT, which does not need to be done at full precision and is thus very very fast), and repeats it carefully a few (really not very many) times.

                The only reason this is hard is that quantum computers are hard.

                Yes, I’m aware there are lots of cryptosystems out there. Shor’s algorithm generically solves a problem called Abelian HSP, and both factoring and discrete logs map to it very cleanly with rather simple algebraic tricks.

                The lattice systems are hanging in there because, in part, the natural related way to break them involves solving the dihedral HSP, which is a tantalizing problem that has distracted quite a few researchers. It looks so close to being solvable in a quantum computer, but it seems to strenuously resist an actual solution.

      • panarky 13 hours ago
        When in doubt, use both.
  • asveikau 16 hours ago
    Seems like github does not support mldsa44-ed25519 identity keys.
  • x71c9 1 hour ago
    can't you upgrade ssh on macos?
  • marcusfrex 14 hours ago
    The app at the link below automatically checks OpenSSH servers and even runs remediations for PQC compliance.

    https://x.com/sceptive/status/2128360703644119393?a=HVIj13nK...

  • chasil 21 hours ago
    I previously relied on Tinyssh to defend a legacy VAX/VMS system.

    I left NTRU Prime active there, but the active terminal emulators in our plant were Reflections and Rocket Bluezone, neither of which implemented NTRU Prime. Maybe they will get motivated.

    Tinyssh doesn't implement any Kyber/Dilithium post-quantum, just DJB.

    https://tinyssh.org/

  • minfazhai 13 hours ago
    [dead]
  • NetOpWibby 21 hours ago
    When do we think quantum computers are gonna be a thing? macOS 30? When Apple's MX MAX chip releases?
    • somat 20 hours ago
      Me personally, never, at not least as quantum computer are defined today. The process is too analog, which makes it resistant to the type of shrink-scaling required for useful operations.

      What I think will happen is a breakthrough/sidestep that will allow existing digital computers to work in the domain quantum computers promise without the analog circuitry required by a "real quantum computer".

      • pishpash 14 hours ago
        That doesn't make sense. The whole point of qubits is to harness what you call the analog process, and digitize it another way. There is no sidestep. The closest you get is maybe quantum dots, or some other thing where you can leverage existing semiconductor processes. Once it's already a classical computer you can never turn it back into a quantum computer.
    • rcxdude 3 hours ago
      It seems unlikely they're ever going to be something you personally buy, just by the nature of they're useful for.
    • monk_grilla 18 hours ago
      Per the linked page:

      > Estimates for when a cryptographically-relevant quantum computer will arrive, based on the rate of progress in the field, range from 5-20 years, with many observers expecting them to arrive in the mid-2030s.

    • syncsynchalt 17 hours ago
      That's the billion dollar question. https://en.wikipedia.org/wiki/Quantum_threat

      For all we know quantum computers have been available to state actors for years.

  • comboy 20 hours ago
    I have this wild idea that something popular got broken but they cannot tell what it is because it would be too likely somebody targeting some research on that before everything is patched. So we're suddenly focusing on post quantum with not much progress happening in quantum computing, eh?
  • Bender 21 hours ago
    [dead]
  • dropdropteam 18 hours ago
    [dead]
  • oniconnect 14 hours ago
    [dead]
  • Iris86901 18 hours ago
    [dead]
  • jonasbrunner 23 hours ago
    [flagged]
  • clownworld1984 22 hours ago
    [flagged]