Has it been Pwned

P versus NP

Imagine splitting a shipment between two trucks so they carry the same weight. Finding a split can take some thought. If someone hands you a proposed split, you can check it with two sums. P versus NP asks how far that difference goes.

What the November claims and papers actually address

Start with six boxes

The boxes weigh 2, 3, 4, 5, 6 and 8 kilograms. Each box has to go on one truck. Can you give the two trucks exactly the same load?

Six boxes waiting between two empty delivery trucks.
Reveal a split and check it

First truck carries the 8, 4 and 2 kg boxes. Second truck carries the 6, 5 and 3 kg boxes. Each total is 14 kg, and all six boxes are accounted for.

This assignment is a certificate for the answer “yes.” You can check it even if you have no idea how the person who gave it to you found it.

Now make the puzzle bigger. Each extra box adds one item to check in a proposed split. It also doubles the number of assignments you might try if you test them all, since the new box can go on either truck. With 40 boxes there are over a trillion assignments to two labeled trucks. That number describes exhaustive search. The open question is whether there is a much faster way to solve every instance of problems like this.

Turn it into a yes-or-no question. “Is there an equal split?” asks for a decision. “Which boxes go on each truck?” asks for a solution. Complexity theory starts with decisions because they have a common form, then studies when the ability to decide also lets us find a solution.

Connect it to cryptography. A digital signature gives anyone with the public key a way to check a proposed signature. Security depends on how hard it is to produce a valid one without the private key. P versus NP asks a broader question about finding answers whose correctness can be checked efficiently. It remains open.

Clay Mathematics Institute problem and statusHow digital signatures work

Quick to solve, quick to check

P

Yes-or-no problems that a deterministic algorithm can decide in polynomial time. P stands for polynomial time. The algorithm’s time bound applies to every input, including the hardest inputs of a given length.

NP

Yes-or-no problems whose yes answers have certificates of polynomial length that can be checked in polynomial time. NP stands for nondeterministic polynomial time. Every problem in P is also in NP.

Measure time against the length of the input in bits. If an integer takes n bits to write, its value can be close to 2n. Work proportional to its value is exponential in the length of the input. A polynomial-time bound grows at most as fast as a fixed power of that length, up to a constant factor.

NP-hard means any problem in NP can be reduced to the problem with polynomial overhead. If the problem is also in NP, it is NP-complete. Boolean satisfiability (SAT) asks whether any assignment of true or false makes a formula true. Cook and Levin established its completeness. Karp showed how reductions carry that hardness to many other problems. A polynomial-time decision algorithm for any one NP-complete problem would put all of NP in P.

The truck puzzle is called Partition. It is NP-complete for positive integer weights written in binary. So a polynomial-time solver that handles every possible list of box weights would also settle P versus NP.

Try a tiny certificate

Is there an integer between 2 and 10 that divides 91? Given a proposed divisor, checking it takes a range check and a division.

7 is a certificate. It is in the range, and 7 × 13 = 91. At larger sizes the complexity question concerns how the work grows with the number of bits.

Cook’s formal problem statementCook’s 1971 paperKarp’s reductions

What either answer would mean

P = NP

Every NP decision problem would have a deterministic polynomial-time algorithm. For any efficiently computable function, given an output and an input length, the prefix argument could find a compatible input whenever one exists. Standard one-way functions depend on the difficulty of finding any such preimage, so they could not exist.

The usual asymptotic guarantees for computational encryption and digital signatures would fail. Practical consequences would depend on knowing an algorithm and being able to run it at the relevant input sizes. A polynomial bound can still come with a huge exponent or constant. A compatible witness may also differ from the specific original secret or message.

P ≠ NP

Some problems in NP would resist every deterministic polynomial-time algorithm in the worst case. This leaves open how frequently hard inputs occur, whether a fast randomized algorithm can solve them, and whether hard instances can be generated efficiently.

Whether P ≠ NP implies the existence of one-way functions is open. Even a proof of separation would give no numerical security level for a chosen modulus, curve, lattice or key size. A scheme needs evidence for its particular distribution of keys and inputs.

Impagliazzo on average-case complexityOstrovsky on one-way functions and hard-on-average problems

The extra assumption cryptography needs

A one-way function is easy to compute but hard to invert on the distribution produced by sampling its input. In the standard asymptotic definition, every probabilistic polynomial-time attacker has negligible probability of finding any preimage for the sampled output. Negligible means the probability eventually falls below the inverse of every fixed polynomial as the security parameter grows.

Imagine that the only inputs that make an algorithm slow come from a tiny exceptional set. That set can determine its worst-case complexity. If the keys a system generates almost never produce inputs in that set, most users could still face an efficient attack. A reduction can sometimes link a sampled problem to a specific worst-case problem. Its force comes from the exact problem, distribution and cost loss it describes.

What one-way functions give us

Håstad, Impagliazzo, Levin and Luby showed that one-way functions suffice for pseudorandom generators. This supports symmetric encryption with short shared keys. Rompel showed that one-way functions are necessary and sufficient for digital signatures in the standard model.

Pseudorandom generation theoremRompel’s signature theorem

Where a stronger assumption may be needed

General key agreement and public-key encryption ask for more. Impagliazzo and Rudich gave a barrier for deriving key agreement using a one-way permutation as a black box. Their result limits that kind of proof and leaves the general implication open.

Impagliazzo and Rudich on black-box constructions

How to apply this to cryptography today

RSA and elliptic curves

Factoring the public RSA modulus exposes the private key, while discrete-log problems underlie many elliptic-curve schemes. Factoring and discrete log are search problems. Their familiar decision formulations have their own complexity results, and NP-completeness is unproved for them. Primality testing is already in P. Deciding that a number is composite asks a different question from finding its factors.

Agrawal, Kayal and Saxena on primalityWhat the Riemann proof changes for primality testingRSA evidenceElliptic-curve evidence

Lattice-based cryptography

Regev’s original reduction used a quantum algorithm to connect average instances of Learning With Errors to particular worst-case lattice problems. Langlois and Stehlé gave reductions for module lattices. NIST relates ML-KEM security to the difficulty of Module-LWE. The lattice problem, approximation factor, noise, reduction, and concrete parameters matter when interpreting those links.

Regev’s LWE paperModule-lattice reductionsFIPS 203Lattice mathematics guide

Symmetric encryption and hashes

Assessments of deployed symmetric primitives use the exact security goal and the best attacks at the specified parameters. Key recovery, collision finding and recovering a preimage measure different things. An asymptotic result about problem classes supplies no concrete time estimate for AES or SHA-3.

Encryption guideHash functions guide

Perfect secrecy

A one-time pad with a uniformly random secret key as long as the message, used once, gives perfect secrecy for messages of a fixed length. Even an adversary with unlimited compute faces the same uncertainty about the message after seeing its ciphertext. Key distribution, key storage and authentication are separate requirements.

Shannon on perfect secrecy

Quantum computing

BQP concerns decision problems solvable with bounded error in quantum polynomial time. Shor’s quantum algorithms solve factoring and discrete logs in polynomial time in that model. How broadly quantum computers can solve NP-complete problems remains open. Those questions are separate from deterministic classical P versus NP.

Shor’s quantum algorithmsQuantum horizon

AI and practical solvers

A solver can do well on the instances it is tested on, and a model can help discover a real cryptanalytic shortcut. A complexity result needs a proof about an entire problem family, including how resources scale with input size. For a security decision, read the tested targets and the costs of the reported method.

AI and cryptanalysis case studies

How a theorem from the ETH work led to a conditional discrete-log claim

When a solution can unlock a message

Return to the six boxes. With witness encryption, you could publish an encrypted note that anyone with a valid split could read. The six-box puzzle is small enough for anyone to try. The same idea can express conditions that are much harder to satisfy.

  1. Set the condition

    The statement is “These six boxes can be split into two equal loads.” The sender publishes the statement and the encrypted note.

  2. Find a witness

    Put 8, 4 and 2 kg on one truck and 6, 5 and 3 kg on the other. Check that each box appears once and that the two sums both equal 14 kg.

  3. Open the note

    The split is the witness. Someone who finds this split, or any other valid one, can use it to decrypt. The sender can already be offline.

A split of 15 kg and 13 kg fails the check. If the total shipment weighed an odd number of kilograms and every box had an integer weight, an equal split would be impossible. The basic security definition requires the note to stay hidden when the statement is false.

The Praxis research design puts a short cryptographic proof between the split and decryption. The recipient creates a proof from a valid solution and uses it to recover the note’s key. They still need a way to find that valid solution in the first place.

The original witness encryption paperHow Praxis works and what it costs

Why the proof is still open

Three results explain why some broad proof techniques cannot settle the problem on their own. Each identifies a property that a successful argument may need to get around.

  1. Relativization

    Baker, Gill and Solovay gave both an oracle under which P equals NP and another under which they differ. An oracle is an extra black-box source of answers given to both kinds of algorithms. A proof that would also work with every such oracle cannot decide the original question.

    Baker, Gill and Solovay

  2. Natural proofs

    Razborov and Rudich studied proofs that distinguish small circuits from typical functions using a property that is both efficiently testable from a truth table and satisfied by many functions. If sufficiently strong pseudorandom functions exist, a technique of this kind would also distinguish those functions from random. This limits those proofs of general circuit lower bounds under the paper’s hardness assumption.

    Razborov and Rudich

  3. Algebrization

    Aaronson and Wigderson considered oracle arguments that can also use an algebraic extension of the oracle. This can capture techniques that escape ordinary relativization. Their results show that P versus NP requires arguments beyond the ones that work under this stronger form of oracle access.

    Aaronson and Wigderson

See how independent checkers tested a formal proof of the Riemann Hypothesis