If public-key crypto broke: life in Minicrypt (and Algorithmica)
- Two different disasters
- What you keep in Minicrypt
- What you lose: secrets with strangers
- So would we mail each other keys?
- The catch: whoever holds the hub can listen
- Algorithmica: when even AES falls
- Where people disagree
- The one-line version
- Sources and further reading
Suppose someone proved tomorrow that public-key cryptography is impossible. No RSA, no elliptic curves, no lattices, no “post-quantum” rescue. Or worse: suppose P = NP, so there are no one-way functions at all. What would the internet look like? Would we mail each other keys? Would online shopping still work? And has anyone actually studied this?
Short answer: yes, people have studied it carefully. The world without public keys looks a lot like the world before 1976, plus some tools we didn’t have then. A world where P = NP is much stranger.
Two different disasters
It helps to keep two cases apart.
Case 1: one-way functions exist, but public-key crypto doesn’t. Things that are easy to compute and hard to undo still exist (hash functions, block ciphers like AES). What we lose is the “trapdoor”: a secret that lets you, and only you, undo the hard thing. Without trapdoors there’s no public-key encryption, and two strangers can’t agree on a secret key in public.
Case 2: P = NP, in a fast, practical way. Then even one-way functions are gone. Any cipher with a key shorter than the messages it protects can, in principle, be broken by searching for the key. All that’s left is cryptography that doesn’t depend on anyone’s computing power being limited.
In 1995 the complexity theorist Russell Impagliazzo gave these possible worlds names in a famous paper, “A Personal View of Average-Case Complexity.” Of his five worlds, three matter here:
- Algorithmica: P = NP. Wonderful for optimization, science and AI. Almost no cryptography.
- Minicrypt: one-way functions exist, but public-key cryptography doesn’t. This is Case 1.
- Cryptomania: public-key cryptography exists. This is the world we think we live in.
(The other two, Heuristica and Pessiland, are odder: hard problems exist but are easy on average, or are hard on average but still give you no cryptography.)
So the question has a technical name: what does life look like in Minicrypt, or in Algorithmica?
What you keep in Minicrypt
The surprise is how much survives.
- Encryption with a shared key works fine. AES, ChaCha20, authenticated encryption: all of it needs only one-way-function-type assumptions. If you and I already share a key, we’re safe.
- Digital signatures survive! This is the most surprising part. Leslie Lamport showed in 1979 how to sign a message using nothing but a hash function. Ralph Merkle’s hash trees turned that into many signatures, and John Rompel proved in 1990 that signatures exist if and only if one-way functions do. These are real, deployed things now: NIST standardized the hash-based signature scheme SLH-DSA (FIPS 205) in 2024.
So in Minicrypt you can still verify things in public: software updates, certificates, signed documents, a bank’s announcements. What you can’t do is set up a secret with someone you’ve never met.
What you lose: secrets with strangers
That last part is a theorem, not just a missing invention.
In 1974, as an undergraduate, Ralph Merkle came up with the first public key agreement idea, now called Merkle puzzles. I publish a million small puzzles, each a little lock you can pick with effort. You pick one at random, solve it, and tell me its label. An eavesdropper doesn’t know which one you picked, so they have to solve about half of them. If we each spend n units of work, the eavesdropper spends about n².
That’s real security, but only a square’s worth. In 1989 Impagliazzo and Steven Rudich showed you can’t get key agreement from one-way functions in a black-box way. In 2009 Boaz Barak and Mohammad Mahmoody showed Merkle’s quadratic gap is the best possible in that setting. If we each do a billion hash evaluations, an attacker needs about a billion billion (10¹⁸). The Bitcoin network does something like 10²¹ hashes every second. Merkle puzzles might stop a nosy neighbor, but not a government.
So in Minicrypt, every secret relationship has to start from something shared in advance.
So would we mail each other keys?
Partly. But mostly we’d use hubs, and we already know how, because the world ran this way before 1976 and big parts of it still do.
- Key distribution centers. Needham and Schroeder described in 1978 how two parties who each share a key with a trusted server can get a fresh key for each other. MIT turned it into Kerberos, which still logs people into Windows networks today. You share one key with the hub, and the hub introduces you to everyone else.
- Your phone already works this way. A SIM card holds a secret key that’s also stored by your carrier. Phone networks verify you with it using symmetric crypto only. Getting a SIM is the “mailed physical key.”
- So do card payments. An EMV chip card shares a symmetric key with the bank that issued it. Every tap produces a code (a MAC) that only the bank can check. Payment terminals get keys installed in secure facilities and derive a new key for every transaction (a scheme called DUKPT).
- Banks used to swap keys on paper. Before 2009, banks on the SWIFT network set up “bilateral keys” with each correspondent bank, at first by written correspondence.
- Real one-time pads, delivered by courier. The Washington–Moscow hotline, set up in 1963, encrypted with one-time pad tapes carried by diplomats.
So a Minicrypt internet might look like this:
- When you open a bank account, get a phone or buy a laptop, you get a key in person or on a chip. The bank, carrier or maker becomes your key hub.
- To reach a website, your hub and the site’s hub hand you both a fresh session key. After that, everything is ordinary AES.
- Commerce works. It already mostly does: card networks are symmetric at heart.
- Signatures still let everyone check who’s who in public.
You would not need one-time pads for everyday web browsing. In Minicrypt, one mailed 256-bit key per relationship, used with AES, is enough. One-time pads only become necessary if P = NP.
The catch: whoever holds the hub can listen
The big cost isn’t convenience. It’s who can read your traffic. A key distribution center knows the keys it hands out. In Minicrypt, “lawful access” isn’t a policy fight like the Clipper Chip in the 1990s. It’s built into the plumbing. Whoever runs the hubs can read everything.
The fix researchers propose is to split the trust. Get pieces of your key from several hubs run by different organizations, and combine them so that no single hub, or even several of them, can rebuild the key. A recent proposal along these lines is Distributed Symmetric Key Establishment (DSKE; von Willich and coauthors, 2022–2024). It uses Shamir secret sharing across several “Security Hubs,” with keys loaded in advance. The authors say it scales to internet use. As far as I can tell, that claim hasn’t been independently checked.
Things that would get hard:
- Talking privately with a stranger without a hub in between, like a whistleblower reaching a journalist. You’d go back to meeting in person, or to trusting somebody.
- Anonymity tools like Tor, which depend on making keys with relays you’ve never met.
- End-to-end encrypted messaging as we know it. You’d compare keys in person (scan each other’s QR codes), or trust several hubs not to collude.
Algorithmica: when even AES falls
If P = NP in a practical way, the toolkit shrinks to tools that don’t depend on limited computing power:
- One-time pads. Mail a hard drive full of random bytes. A 1 TB drive is plenty for a lifetime of text messages, but not much video.
- Wegman–Carter authentication (1981). This is tamper-proofing that even unlimited computing can’t beat, using short one-time keys.
- Quantum key distribution (Bennett and Brassard, 1984). Its security rests on physics, not math, so it survives P = NP. But it needs an authenticated channel to start with. That means a pre-shared key, so QKD expands a shared key rather than creating one from scratch.
- The bounded-storage model (Ueli Maurer, 1992). Broadcast a flood of random bits too big for anyone to store. Two parties who share a short key each keep the same few bits, and the eavesdropper can’t keep them all.
- Many separate paths. Send pieces of a secret along routes the attacker can’t all watch at once.
So the “mail physical keys, use one-time pads” picture is mostly the P = NP picture, not the Minicrypt one.
Where people disagree
- Do we really live in Cryptomania? Most cryptographers think so. But public-key crypto rests on structured math problems (factoring, lattices, isogenies), and structured problems sometimes fall all at once. In 2022 SIKE, a post-quantum scheme still in NIST’s competition, was broken in about an hour on one laptop core (Castryck and Decru). Rainbow, a signature finalist, fell to an attack that took a weekend on a laptop (Beullens). One-way functions feel much safer. Nobody has proven any of these problems hard, so this is judgment, not proof.
- QKD or pre-shared keys? In 2024 the security agencies of France, Germany, the Netherlands and Sweden published a joint position paper. It says QKD is only suitable for niche use, and that post-quantum crypto and pre-shared symmetric keys should be the main hedges. The NSA and the UK’s NCSC also advise against relying on QKD. Some physicists have written rebuttals.
- Hedging in real life. Some systems already let you mix in a pre-shared key in case public-key crypto breaks. WireGuard has an optional pre-shared key for exactly this reason, and TLS 1.3 has an extension (RFC 8773) that mixes an external pre-shared key into the handshake.
- Would P = NP even matter? Only if the algorithm is fast in practice. An n¹⁰⁰ algorithm changes nothing. In Bill Gasarch’s 2019 poll of researchers, a large majority bet P ≠ NP. Donald Knuth is a well-known dissenter, though he expects any proof of P = NP to be useless in practice. Lance Fortnow’s book The Golden Ticket (2013) imagines a practical P = NP world: medical and scientific breakthroughs, and the end of privacy as we know it.
- The theory frontier. It’s still open whether public-key crypto can be built from one-way functions in some clever non-black-box way. And in 2020 Yanyi Liu and Rafael Pass showed that one-way functions exist if and only if a natural problem about Kolmogorov complexity is hard on average. That’s a new way to ask whether we live in Minicrypt (or above) at all.
The one-line version
Lose public keys, and the internet goes back to hubs and introductions: banks, carriers and device makers hand out keys, commerce barely notices, signatures still work, and the real loss is private contact with strangers without someone in the middle. Lose one-way functions too (P = NP), and you’re back to couriers, one-time pads, quantum links and floods of random bits.
Sources and further reading
- R. Impagliazzo, “A Personal View of Average-Case Complexity” (1995): the five worlds.
- R. Merkle, “Secure Communications over Insecure Channels,” CACM (1978); idea from 1974.
- R. Impagliazzo and S. Rudich, “Limits on the Provable Consequences of One-Way Permutations,” STOC (1989).
- B. Barak and M. Mahmoody, “Merkle Puzzles Are Optimal,” CRYPTO (2009): https://eprint.iacr.org/2008/032
- L. Lamport, one-time signatures (1979); J. Rompel, “One-way functions are necessary and sufficient for secure signatures,” STOC (1990); NIST FIPS 205 (SLH-DSA, 2024).
- R. Needham and M. Schroeder, “Using Encryption for Authentication in Large Networks of Computers,” CACM (1978); Kerberos.
- M. Wegman and J. L. Carter, “New hash functions and their use in authentication and set equality” (1981).
- C. Bennett and G. Brassard, BB84 quantum key distribution (1984).
- U. Maurer, “Conditionally-perfect secrecy and a provably-secure randomized cipher,” J. Cryptology (1992): the bounded-storage model.
- DSKE: https://arxiv.org/abs/2205.00615 and https://arxiv.org/abs/2407.20969
- ANSSI/BSI/NLNCSA/Swedish Armed Forces, “Position Paper on Quantum Key Distribution” (2024): https://cyber.gouv.fr/en/publications/jointly-led-international-publications/position-paper-on-quantum-key-distribution/
- NSA on QKD: https://www.nsa.gov/Cybersecurity/Post-Quantum-Cybersecurity-Resources/
- Y. Liu and R. Pass, “On One-way Functions and Kolmogorov Complexity” (2020): https://arxiv.org/abs/2009.11514
- SWIFT bilateral key exchange: https://en.wikipedia.org/wiki/Bilateral_key_exchange
- L. Fortnow, The Golden Ticket: P, NP, and the Search for the Impossible (2013).
Write a comment