At a glance:
- The limits of cryptographic security: most of cryptography relies on mathematical assumptions about computational hardness which can be violated as computing capabilities and cryptanalytic techniques evolve
- Cryptographic agility by design: systems must be able to transition to new cryptographic algorithms while preserving their established security properties
- Planning for long-term security: formal analysis, engineering considerations, and carefully designed migration processes are essential to sustaining security as our understanding of cryptographic assumptions evolves
Most cryptography requires taking a leap into the unknown. The recent announcements from the NSA, the NCSC and leading technology companies are a reminder of this fact. Cryptography shapes computational hardness into something we can use to reason about the security of familiar cryptographic tools, such as encryption and digital signatures. And in this way, the security of these primitives becomes a conditional statement that relies on the existence of such hardness. Establishing, or even understanding and properly modeling computational hardness, has proven to be a notoriously difficult area of computer science. The P vs. NP question is the most famous conjecture related to it. And even if it is true that P and NP are different–which is to say that there are problems that are easy-to-verify but hard-to-compute, this by itself would be insufficient for most cryptographic applications that require problems of this kind with additional structure. Understanding Computational Hardness
In order to be able to contemplate the hardness of computation, one has to define what computation means. Thankfully, many decades of thinking, nearing now almost a century, have resulted in two widely accepted computational models as relevant for our purposes. The first one, the standard computational model, that includes random access machines and Turing machines, captures everything computable by a digital computer. The second, the quantum computational model, captures everything that is computable by a quantum computer. Efficiently computable tasks, at least in the decision-making sense, are captured by two classes corresponding to these two models, namely BPP and BQP. For most of cryptography to work, either against attackers equipped with classical computers or attackers equipped with quantum computers, there should exist suitable computational tasks that lie outside these classes.
As a result, most cryptographic algorithms rely on mathematically unproven assumptions about such hard computational tasks. This naturally invites the question: Why do we accept such assumptions? The answer is that we have tried to solve the corresponding problems, repeatedly over time, and no efficient algorithm has been discovered so far. So such problems are hard, as far as we know.
Levels of Hardness
The level of computational hardness of a particular task, at any given time, is a function of the complexity of the best known algorithm and the computing equipment available to run such an algorithm. Our confidence in a hardness assumption is therefore something that must be revisited as algorithms and computing equipment improve. Uncertainty about classical hardness alone is sufficient to motivate this requirement. A better cryptanalytic method, including one discovered with the assistance of AI, can change the cost of an attack on an ordinary digital computer. Quantum computing adds further possibilities to the assessment. In each case, the design challenge is the same: a system must be able to respond when the assumptions supporting its security cease to be adequate.
Cryptographic Agility
What is the best method to navigate this uncertain environment? Cryptographic agility. Informally, agility is the ability to change the cryptographic mechanisms of a system while retaining desired security properties. Ensuring this continuity of security properties while cryptographic algorithms change is the crucial feature of true agility. A system accumulates records, credentials, and commitments during its operation, and its users rely on their semantics over time. An agile algorithm update has to justify how this established state is carried forward, how the change is authorized, and what security guarantees persist throughout the process.
A simple example. Consider a university that has been issuing digitally signed diplomas for many years. An employer checks a diploma using the university’s public verification key. Suppose the university now adopts a new signature scheme because confidence in the old one is declining. It can issue new diplomas under a new key, but graduates still need to present the diplomas they already hold. If the old scheme later becomes forgeable, an attacker could manufacture a diploma with an earlier issue date. The date on the document would provide no assurance that the university had actually issued it.
One design approach to address this problem is to create an authenticated registry of cryptographic hashes of the diplomas the university has issued before the update (eg, in a ledger). During the update, the university authenticates the replacement algorithm and public key together with this authenticated record. Any verifier can check that the transition preserves the valid records they already hold. Subsequently, an old diploma can be checked against the authenticated record, so its acceptance no longer depends solely on the old signature scheme. A newly forged diploma using the deprecated signature scheme would fail this check because it was never included in the preserved record.
The update itself needs a trustworthy basis. The university could establish a separate verification key in advance, using a conservative signature scheme reserved only for authorizing updates. An update would bind the replacement key and the authenticated record to the university’s established identity. Since this additional scheme is used infrequently, costs that would be excessive for regular diploma signing can be acceptable — even a hash-based one-time signature could suffice. Its protection must cover both key custody and the underlying cryptographic assumption: keeping a key offline does not prevent an algorithmic attack on its public key. The update mechanism itself must retain its security against the class of failures it is intended to address.
Timing is essential to this guarantee. If the authenticated record is established before the old signatures become forgeable, it can preserve the distinction between genuine diplomas and later fabrications. If a compromise has already occurred, recovery depends on which evidence remains trustworthy and which parts of the system remain secure. An upgrade cannot, by itself, establish the authenticity of an arbitrary record received during a compromised period. The verifiers that complete the transition must also obtain a consistent view of the preserved history.
This example shows why cryptographic agility is a design feature that should be in place well before the choice of a transition algorithm. The means to authenticate a transition, retain the necessary records, and coordinate verifiers must be established in advance. A suitable replacement can then be selected in light of the knowledge available when the update is needed, subject to the system’s day-to-day requirements.
Sustainable Security through Agility
The same principles extend to applications that have a more complex state and functionality. A public ledger must preserve the connection between its accepted history, asset ownership, and the authority to govern its future operation. A system using zero-knowledge proofs must account for both the validity of the claims it preserves and the confidentiality of the information supporting them. Carrying such claims forward may require fresh evidence under a replacement proof system, with an update procedure that avoids leakage of sensitive information. Each application needs a precise account of what can be preserved during the transition and under which assumptions.
Confidentiality of data places a limit on what an update can accomplish. An adversary may retain encrypted information and decrypt it later if the underlying hardness assumption fails. Updating the system cannot protect copies already collected under vulnerable cryptography. Planning must therefore consider how long information needs to remain secret, as well as how long migration will take. For confidential transactions and applications with selective disclosure, the security of encryption, the validity of proofs, and the privacy of proofs require separate assessments. Finally, everlasting privacy, where confidentiality is enforced information-theoretically and hence becomes future-proof against any attack, is possible in some circumstances; nevertheless, such strong guarantees will clash with and restrict the verifiability properties of the underlying system.
Engineering considerations are also critical. In a blockchain protocol, larger signatures can increase the time needed to distribute a block, affecting the network-delay assumptions of a consensus protocol. More expensive verification can increase the resources required to participate. A replacement must therefore be assessed within the complete system, including the guarantees and operating conditions of the surrounding protocols.
Finally, formal analysis makes these requirements explicit and establishes their guarantees under a precise formulation. Engineering provides the implementations and measurements needed to assess their practical realization. Clear interfaces help components evolve independently, while integration tests and migration exercises examine whether they can make the transition together.
To conclude, the best approach for the sustainable security of a system that relies on cryptographic algorithms is not “post-quantum” or “post-AI,” but one that combines well-founded algorithm choices with agility by design. It does not merely bet on today’s best algorithms, since what is “best” changes over time, but also on the system’s ability to transition to safety in a timely fashion when the computational assumptions the system rests on start to show cracks.
Further reading
Michele Ciampi, Nikos Karayannidis, Aggelos Kiayias, and Dionysis Zindros, Updatable Blockchains, 25th European Symposium on Research in Computer Security (ESORICS) 2020
Christian Badertscher, Michele Ciampi, and Aggelos Kiayias. 'Agile Cryptography: A Universally Composable Approach.' Cryptology ePrint Archive, Paper 2022/1367, revised September 2023. Sections 1, 4, and 5.
National Institute of Standards and Technology. Post-Quantum Cryptography Standardization.




