ZK/SEC Research notes from zkSecurity
All posts
security · AI

On AI and cryptography; a.k.a. are we borked?

2026 will be remembered as the year AI solved open mathematics problems1 2 and started to tackle cryptography3. In the midst of rumours4 and announcements3 5, I want to take a bit of time to discuss the consequences of these potential findings. Will we still have cryptography? If so, what kind? Or, as one of my friends put it succinctly and eloquently:

are we borked?

Cryptography is an asymmetry of cost

At its core, cryptography is an asymmetry of cost between defense and attack. We want to be able to cheaply set up a system that will be expensive to break6.

P, NP and friends. The first question one might ask is whether asymmetry exists at all: are there problems that are easy to set up, hard to solve and easy to verify? These questions have been studied and formalized by computer scientists. The question of whether there exists problems that are hard to solve but easy to verify is known as "P vs NP". Should these problems exist, the question of whether they are easy to set up is equivalent to asking whether "one-way functions" exist.

As it stands, the first question is unresolved. Any progress here could undermine the possibility of cryptography altogether. However, most experts are optimistic: it is general consensus that such problems do exist (P≠NP).

Asymmetry: exponential or diminishing returns. Assuming we do have problems with nice asymmetries, the question becomes: how big is this asymmetry? So far, we have been working under the assumption that our problems are exponentially hard. For every unit of work spent by the defense, the attack's workload doubles. Mathematically, we would write that the defense spends $n$ and the attack spends $2^n$.

However, it could be the case that there is a sort of "law of diminishing returns" for the problems we use. That is, at some point, even if the defense adds a whole unit of work, the attacker's workload does not double. For example we could have that defense spends $n$ and the attack only spends $2^{\sqrt n}$.

Enter AI

As mentioned above, we are making multiple assumptions:

  1. we assume that there exists problems that are hard to solve and easy to verify (P≠NP).

  2. we assume that there problems are exponentially hard to solve.

Both of these statements are unproven. Since we have not been able to come up with an algorithm that solves these problems, we have been satisfied that our assumptions are correct.

That was, until the end of 2026. Today, humanity's ability to produce mathematical results has drastically changed thanks to LLMs. It is necessary and healthy to put these assumptions into question.

What might happen. If we disprove assumption 1, we live in a world where the defense and attack costs are proportional. Cryptography becomes very hard: as soon as you amass enough resources to set up a secure system, others will see you as a threat to their own systems. Maybe we get into an area of game-theoretic security, but this is now way beyond my domain of expertise.

If we disprove assumption 2, things are less dire. Cryptography in the way we know it still exists albeit with larger key sizes. Indeed, we still have asymmetry between that attacker and the defender but because of the diminishing returns, defenders will have to spend more. It is worth noting that RSA already lives in this "diminishing returns" range7.

My personal opinion. At the risk of being completely wrong, I'll make a little educated guess. I believe that we live in a world where problems that are hard to solve and easy to verify do exist. Our daily lives are full of such examples. On the other hand, I am willing to believe that LLMs will prove that none of our hard problems are exponentially hard. The consequences of such a result are consistent with what the NSA advised5.

Acknowledgements

Thank you to my friend Achilleas Sarantaris for asking whether we are borked and for pushing me to write this up.


  1. OpenAI, On the Navier-Stoke Millenium Prize, Sept 2026. https://openai.com/index/navier-stokes-solution/. ↩

  2. Levent Alpöge, remark.pdf, Nov 2026. https://alpo.ge/remark.pdf. ↩

  3. CIRG, Initial Assessment of Anthropic’s Findings on Lattice Cryptography, Nov 2026. https://cirg.org/statements/1/. ↩↩

  4. No citation here but X is rife with speculation, vagueposting and attack softlaunches. ↩

  5. NSA, NSA Advises Immediate Transition to Post-Quantum Cryptography to Protect National Security Systems, Dec 2026. https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/. ↩↩

  6. Ian Miers also uses this framing in conversation on the a16z Frontier podcast. ↩

  7. Number field sieve algorithm, https://en.wikipedia.org/wiki/General_number_field_sieve. ↩

Keep reading
More to explore

zk.golf: Fearless and Collaborative Optimization of Circuits

zk.golf is a platform where people can compete on creating the most efficient zk circuits for specific problems. It is enabled by what we call "fearless optimization", which is achieved by combining formal verification and frontier AI models. By the end, you will be convinced that nobody should look at constraints ever again in their life.

Giorgio Dell'Immagine, Mathias Hall-Andersen · July 02, 2026

AI meets Cryptography 3: What AI Found in Bron Labs's bron-crypto

We pointed our AI audit pipeline at bron-crypto, Bron Labs's Go library for MPC and threshold signatures, and confirmed four bugs. All of them are now fixed upstream. This is the third post in our series on bugs our agents found across open source cryptography.

Stefanos Chaliasos, Hao Pham · July 22, 2026

Optimizing Barrett Reduction: Tighter Bounds Eliminate Redundant Subtractions

In this blog post, we explore an optimization for Barrett reduction, a popular method for modular arithmetic. We discovered that the error bound can be tighter than traditionally thought, meaning you often only need a single subtraction instead of two. This tweak can speed up cryptographic operations like those in the RustCrypto library by 14% when applied to NIST curves, which is a game changer for both encryption and performance. Dive into the details to see how this simple change can lead to significant improvements in real-world applications!

Suneal Gong · May 01, 2025