LAW // AI INFRASTRUCTURE ECONOMICS

Mosca's inequality

The rule that you have a problem when X plus Y is greater than Z, where X is how long data must stay secret, Y is how long migration takes and Z is the time until a break. For an AI-found break there is no estimate of Z.

Mosca's inequality is a planning rule for cryptographic risk. If X is how long your data must stay secret, Y is how long your migration takes, and Z is how long until a break, you have a problem when X plus Y is larger than Z. It is also called Mosca's theorem. It matters because it turns a vague worry into three numbers, and because it shows that the time to start is earlier than the break by the lifetime of the data plus the length of the migration.

Michele Mosca proposed the rule for quantum computers, where Z is the time until a machine large enough to break today's public-key algorithms exists. Data encrypted now under a vulnerable key exchange can be recorded and opened after the break. If that data must stay secret for X years and the replacement takes Y years to deploy, the two periods together have to fit inside Z. NIST's transition plan, IR 8547, published as final on 27 October 2026, restates the rule and concludes that migration must start now even if a capable quantum computer is a decade away. For signatures, read X as the number of years a device or document must keep trusting the key.

For a quantum computer, experts argue about Z. For an AI-found break there is no estimate of Z at all, because a better attack found by software has no hardware roadmap to watch. That changes what the rule is for. You cannot choose Z, so the only numbers under your control are X and Y: keep less, expire it sooner, and make migration faster. Shorten X by retaining less data and by using short-lived keys and tokens. Shorten Y by keeping a living inventory and rehearsing one rotation, so that the migration time is a measured number.

Frequently asked questions

What is Mosca's inequality?

Mosca's inequality says that if X is how long your data must stay secret, Y is how long your migration takes, and Z is how long until the algorithm protecting it is broken, you have a problem when X plus Y is larger than Z. Michele Mosca proposed it for the risk from quantum computers.

How does Mosca's inequality apply to a break found by AI?

The form stays the same and one input disappears. Quantum hardware progress is published, so experts can argue about Z. A better attack found by software gives no such gauge, so there is no estimate of Z at all. The only numbers under your control are X and Y: keep less data, expire it sooner, and make migration faster.

Does Mosca's inequality apply to signatures?

Yes, with X read differently. For encryption, X is how long the data must stay secret. For signatures, X is the number of years a device or document must keep trusting the key. A firmware signing root has a long X, because devices in the field verify against it for their whole service life.

Source analyses

READ THE FULL ARGUMENT
How much time do you have? (guide to post-AI cryptography, with the Mosca lab)

References

Related terms

GLOSSARY
Q-Day
GLOSSARY
Harvest now, decrypt later
GLOSSARY
Crypto agility
Michał Piszczek
Michał Piszczek
CEO / CTO / FOUNDER

Term defined and maintained by Michał Piszczek - CTO of Archdesk, author of the Joule Wars and Proof-Adjusted Autonomy frameworks. Quote freely with attribution to piszczek.pl/glossary (CC BY 4.0).