Cryptographic algorithms have a limited life. Attacks improve, computers get faster, and standards are withdrawn and replaced. Yet many systems were built as if the algorithm chosen on the first day would stay for ever: it is written into the code, the data formats and sometimes the hardware. Crypto-agility is the property that turns a change of algorithm from a redevelopment project into a routine operation.

Why does crypto-agility matter now?

The immediate reason is the migration to post-quantum cryptography. The public-key algorithms in use almost everywhere, RSA and elliptic-curve schemes, could be broken by Shor’s algorithm running on a sufficiently large quantum computer, and they have to be replaced in browsers, servers, devices and documents. Because of the harvest now, decrypt later risk, the change cannot wait until such a machine exists.

The second reason is that this migration will not be the last. DES, MD5 and SHA-1 were once in everyday use and all had to be retired, and each retirement took years because the algorithms were embedded so deeply. The new post-quantum algorithms have been studied intensively, but they have far less history in real-world use than RSA. SIKE, a candidate that had reached a late round of NIST’s evaluation, was broken in 2022 by an attack that ran on an ordinary computer. An organisation that can migrate only once has solved half of the problem.

What does crypto-agility look like in practice?

  • A cryptographic inventory: a maintained record of where cryptography is used, with which algorithms, key lengths, certificates and libraries, and who is responsible for each system.
  • No hard-coded algorithms. Applications call cryptography through a library or a central service, and the algorithm is chosen by configuration or policy, not in the source code of the application.
  • Protocols and libraries that negotiate algorithms. In protocols such as TLS the two sides agree on an algorithm that both support, so a new one can be introduced gradually and an old one switched off later.
  • Central management of certificates and keys. Issuing, renewal and revocation are automated, so thousands of certificates can be replaced without manual work.
  • Data formats that identify the algorithm. Stored ciphertexts, signatures and keys carry an identifier of the algorithm used, so that old data can be recognised and protected again later.
  • Support for hybrid schemes. During the transition a classical algorithm and a post-quantum one can be used together.
  • Testing and rollback. A change of algorithm is tested beforehand for performance and interoperability, and there is a prepared way back if something fails.

Agility does not mean supporting as many algorithms as possible. Every additional option has to be maintained and tested, and the negotiation step must be protected so that an attacker cannot push both sides to the weakest choice. The aim is a small, well-managed set of algorithms and a proven procedure for changing it.

What makes crypto-agility difficult?

The obstacles are rarely mathematical. They come from how deeply cryptography is built into products and processes.

  • Embedded and long-lived devices. Industrial controllers, vehicles, meters and smart cards may stay in service for decades. They have little memory and computing power, and some cannot be updated in the field at all.
  • Hard-coded algorithms. They hide not only in source code but also in data formats, database fields and message layouts sized for one particular key or signature length.
  • Vendor dependencies. An organisation can change only as fast as the suppliers of its software, hardware security modules and cloud services allow.
  • Protocol and message-size limits. Post-quantum keys and signatures are larger than the ones they replace, which causes trouble wherever field or packet sizes are fixed.

What are the first steps for an organisation?

  1. Assign responsibility. Cryptography is usually spread across teams, and someone has to own the overall picture.
  2. Start the inventory with the systems that protect long-lived data and those exposed to external networks.
  3. Set a rule for everything new: no hard-coded algorithms in in-house development, and crypto-agility and a post-quantum roadmap as requirements in procurement.
  4. Rehearse a change. Move one system to a hybrid or post-quantum configuration in a test environment and measure the effect.
  5. Decide what to do with systems that cannot be made agile: isolate them, protect them behind a gateway, or schedule their replacement.

None of these steps depends on knowing when a large quantum computer will arrive. They reduce the cost of every future change of algorithm, whatever its cause.

How Q&Co can help

Q&Co develops post-quantum security solutions for industry and provides consulting and training alongside them. If you want to assess how agile your systems are, or to plan a cryptographic inventory, contact us.