Crypto-Agility, Changing an Algorithm Without Rewriting the Application

In February 2017, Google and CWI Amsterdam announced the first SHA-1 collision. NIST had disallowed SHA-1 for digital signatures after 2013, and the industry still spent years removing it. Five years before, the Flame malware had posed as Windows Update with a forged certificate whose signature used MD5.

In both cases, the weakness of the algorithm had been known for years. What took time was finding every place it was used and changing each one by hand. The post-quantum migration is the same exercise, applied to every asymmetric algorithm at once.

What crypto-agility means

NIST defines crypto agility as "the capabilities needed to replace and adapt cryptographic algorithms in protocols, applications, software, hardware, firmware, and infrastructures while preserving security and ongoing operations". ANSSI published its views on the subject in January 2026, and recommends that products be able to change parameter sets without being rewritten.

The regulations ask for it too. The NIS2 implementing regulation expects "a cryptographic agility approach" where appropriate, and DORA's technical standard requires provisions to change the cryptographic technology when cryptanalysis moves.

What makes an application rigid

  • The algorithm in the code. RSA.Create() written in forty places, each with its own key size and padding.
  • A homemade format. Bytes laid out in an order only the code knows, with nothing saying which algorithm produced them. Changing the algorithm breaks every file already written.
  • Keys without history. One key per application, replaced in place, so old data becomes unreadable the day it changes.
  • No owner. Nobody knows where the cryptography lives, so nobody can change it.

What makes it agile

  • One place for cryptography. The application asks to encrypt or sign. A single component decides how.
  • Self-describing messages. Each message names its algorithms with standard identifiers, as CMS does with OIDs. Old and new messages live side by side, and the reader knows how to open each one.
  • A policy instead of constants. The allowed algorithms come from a profile or a configuration, reviewed like any other security setting.
  • Keys with a history. Rotation adds a key and keeps the old ones, so everything already encrypted stays readable.
  • A way to re-encrypt. Data that must outlive the old algorithm is rewritten to the new one, in batches, with a journal.
Crypto-agility is decided before the crisis. During the crisis, it is too late to look for where the algorithm lives.

How Feranor PQC Suite applies it

Applications call an engine to encrypt and sign, never an algorithm. The algorithms come from a profile, ANSSI by default, applied to everything read and written. Messages are standard CMS and name their algorithms. Adding an algorithm, or an HSM implementation of an existing one, is a class registered in the product, with no change to the format or to the applications.

The key store rotates keys without losing the past, and the command line re-encrypts RSA and ECDH archives to post-quantum recipients. The algorithms still to come, such as FN-DSA or HQC, will take the same path.


The components, the algorithms, the performance and the pricing, on one page.

Post-quantum encryption with Feranor PQC Suite ➔