Quantum Coincidences

Last week I went to a very interesting Tech Talk presentation at work (thanks Nikolai!) and I learned that there was yet another thing to be worried about: Q-Day. Q-Day is the theoretical point when a quantum computer becomes powerful enough to break today’s public-key encryption. And suddenly this week, every single day there has been new announcements about Q-Day related things!

Coincidence or just frequency illusion?

Read on for my attempt to untangle all these confusing quantum conundrums!

Q-Day explained for a math challenged brain like mine

First let’s breakdown what exactly is Q-Day: We use cyphers to encrypt messages. Cyphers are algorithms and there are two types of cyphers:

  1. Symmetric

    • 1 key is used to encrypt and decrypt the message
    • example is AES (Advanced Encryption Standard) which is a fast block chipper used for bulk encryption (example to encrypt your hard drive)
    • These cyphers are currently not susceptible to be completely broken in the future by quantum computers.
    • Grover’s Algorithm is a quantum search algorithm that can dramatically increase the speed in which the key could be found to unencrypt the information. Fortunately, in this case increasing the key from 128 bits to 256 bits will be enough to ensure the key cannot be found in a reasonable amount of time.
  2. Asymmetric

    • 2 keys that are mathematically related are used to encrypt the data: A public key that you can share openly and a private key that you must keep secret. Data encrypted with a public key can only be decrypted with its matching private key, solving the problem of securely sharing a secret key in advance.
    • example is RSA which is slow for bulk data so it is used to sign/verify messages rather than encrypting files. Meaning it is used to make sure the contents of the file have not been modified and be sure who sent it.
    • These cyphers are the ones that are in risk of being broken by future quantum computers.
    • Shor’s algorithm will break RSA and doubling the key size won’t help because it is a quantum algorithm that factors large integers exponentially faster than classic algorithms. The key word here is exponentially, because unlike Grover’s Algorithm’s dramatic increase, this will just obliterate the security, and quantum computers will mow through the encryption like we can with pig latin.
    • Examples of where these types of cyphers are used:
      • HTTPS
      • SSH
      • Bitcoin and Ethereum wallets
      • Signal/WhatsApp key exchange
      • digital signatures

What day exactly will Q-Day hit? Well, current quantum computers are yet not powerful enough and most estimates put it out for 5 to 10 years. But in reality we most likely won’t even know when it has happened as the nation state who achieves it would not want to publicize it, rather they would sit back and take advantage of the fact nothing is secret to them. So, it might have already happened or might happen in 10 years. Either way we need to do something today.

And that is where post-quantum cryptography (PQC) comes in:

  • for Symmetric ciphers doubling the key size should be enough.
  • for Asymmetric ciphers new algorithms will need to be used that are not vulnerable to Shor’s algorithm.

The NSA’s Commercial National Security Algorithm (CNSA) Suite sets approved cryptography for U.S. National Security Systems (NSS) and has released their quantum resistant recommendations under CNSA 2.0:

Crazy week

So I had a weekend to ponder my new fears about Q-Day and assimilate my newly found worry to wake up to this news on Monday: Anthropic has made a major breakthrough in theoretical cryptanalysis which would appear that behind closed doors Anthropic informed cyber gurus that their AI had found possible theoretic attacks on even the new post-quantum cryptography cyphers!

And then on Wednesday the NSA dopped this bomb: NSA advises immediate transition to post-quantum cryptography!

Holy cows! Good thing I leaned all about this last week!

This really smart guy helped read between the lines of the NSA press release like a Russian would read between the lines of the communist party news paper the Pravda and makes these recommendations:

  1. drop 256-bit ECC key exchange ASAP (concretely, by moving to ML-KEM hybrids);
  2. prepare to require ML-DSA or RSA 3072/P-384 for auth (which is hard, because auth is secure only once you don’t have any vulnerable anchors);
  3. accelerate a full transition to ML-DSA and ML-KEM everywhere, prioritizing it over everything else in cryptography land (although RCEs might still matter more than cryptography);
  4. plan contingencies in case attacks against ECC and/or RSA get better or materialize over the next weeks and months.

I still need to investigate a bit more to understand everything he is saying, but I can apply the recommend first step from the Tech Talk last week: inventory of where I am using ciphers and how I am affected.

  • SSH used on servers

    • Problem: uses elliptic-curve crypto that is specifically called out to migrate off in the NSA advisory
    • PQC solution: OpenSSH 10.0 supports mlkem768x25519-sha256
  • Wireguard used for Personal Virtual Private Network

    • Problem: also uses elliptic-curve crypto that is specifically called out to migrate off in the NSA advisory
    • PDC Solution: ad preshared keys (PSK) an optional slot that mixes a shared 256-bit secret into the key derivation. That secret is purely symmetric, so it’s quantum-safe
  • HTTPS used for Blog and Refugio

    • Problem: as these are public websites that no confidential data is exchanged, not really a problem and no so urgent
    • PQC solution: ensure OpenSSL 3.5 is used that supports ML-KEM and ensure TLS1.3 is enabled as ML-KEM only works on TLS1.3

Ok! that is kinda like when you make a kanban of everything that needs to be done, and suddenly an insurmountable task seems doable! Phew! Now I just need to make sure I skip any future Tech Talks because I do not need more things to worry about!

Update on Friday morning

Bruce “the goto guy on all things crypto” Schneier updated his post about the NSA notification with this:

EDITED TO ADD: I just heard from a reliable source that ECC P-256 was broken. (Remember that cryptographers have a different definition of “broken” than normal people do.) I don’t know the details (and they matter), but other things are safe (for now). So that matches the collective hunches of the cryptographers.

oh man. Asked Claude where ECC (Elliptic-curve cryptography) P-256 is used:


P-256 (also called secp256r1 or prime256v1) is the most widely deployed elliptic curve in the world, so a break would reach almost everywhere:

Web and TLS

  • Certificates: most ECDSA certificates are P-256, including the Let’s Encrypt default for certbot and Caddy, Cloudflare, and Google’s own sites.
  • Key exchange: P-256 is the second most common TLS key-exchange group after X25519.

Logins and identity

  • Passkeys, WebAuthn, FIDO2 and YubiKeys: the default algorithm (ES256) is P-256.
  • Hardware key stores: Apple Secure Enclave, Android Keystore, TPMs and many smart cards often support only P-256.
  • Tokens: JWT/OAuth tokens signed with ES256, and cloud KMS and HSM keys.

Devices and payments

  • Bluetooth LE pairing (Secure Connections uses P-256 key exchange)
  • Matter and Thread smart-home device certificates
  • Apple Pay payment tokens, and car digital keys
  • VPNs: IPsec/IKEv2 (group 19); WireGuard is not affected

SSH

  • ecdsa-sha2-nistp256 keys, often used as server host keys.

Not P-256 (common confusions):

  • Curve25519/Ed25519, used by WireGuard, Signal and modern SSH. Filippo suspected these too, but Schneier’s source names only P-256.
  • secp256k1, used by Bitcoin and Ethereum. Different curve.

On Schneier’s caveat: to cryptographers, “broken” can mean “an attack faster than designed,” not “practical today.” Even so, the NSA’s wording plus this report point the same way.


AI just keeps making our lives more interesting!!!

Thanks for reading and feel free to give feedback or comments via email (andrew@jupiterstation.net).